]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: find gperftools package for tcmalloc_minimal too 11403/head
authorBassam Tabbara <bassam.tabbara@quantum.com>
Mon, 10 Oct 2016 21:37:58 +0000 (14:37 -0700)
committerBassam Tabbara <bassam.tabbara@quantum.com>
Tue, 11 Oct 2016 17:12:52 +0000 (10:12 -0700)
Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
CMakeLists.txt

index aaaab4e4b20ba96000a59beac8da8ef33f793275..03fdbbf40b422bb0d27db9ffe45f08e0d405513d 100644 (file)
@@ -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")