From: Bassam Tabbara Date: Mon, 10 Oct 2016 21:37:58 +0000 (-0700) Subject: cmake: find gperftools package for tcmalloc_minimal too X-Git-Tag: v11.1.0~660^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11403%2Fhead;p=ceph.git cmake: find gperftools package for tcmalloc_minimal too Signed-off-by: Bassam Tabbara --- diff --git a/CMakeLists.txt b/CMakeLists.txt index aaaab4e4b20b..03fdbbf40b42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,7 +257,7 @@ find_package(snappy REQUIRED) #if allocator is set on command line make sure it matches below strings if(ALLOCATOR) - if(${ALLOCATOR} STREQUAL "tcmalloc") + if(${ALLOCATOR} MATCHES "tcmalloc(_minimal)?") find_package(gperftools REQUIRED) set(HAVE_LIBTCMALLOC ON) elseif(${ALLOCATOR} STREQUAL "jemalloc")