From ca9946d2b5a6339abb3820a8611bc39d518d8beb Mon Sep 17 00:00:00 2001 From: Bassam Tabbara Date: Mon, 10 Oct 2016 14:37:58 -0700 Subject: [PATCH] cmake: find gperftools package for tcmalloc_minimal too Signed-off-by: Bassam Tabbara --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.47.3