From c81f143411c0e1395f474047b63d5740f5ef3476 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 6 Aug 2018 17:58:10 +0800 Subject: [PATCH] cmake: add ALLOCATOR option ALLOCATOR is in fact an option.. Signed-off-by: Kefu Chai --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index af27c909c5f5f..3709830d13272 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -314,6 +314,10 @@ if(WITH_LZ4) endif(WITH_LZ4) #if allocator is set on command line make sure it matches below strings +set(ALLOCATOR "" CACHE STRING + "specify memory allocator to use. currently tcmalloc, tcmalloc_minimal, \ +jemalloc, and libc is supported. if not specified, will try to find tcmalloc, \ +and then jemalloc. If neither of then is found. use the one in libc.") if(ALLOCATOR) if(${ALLOCATOR} MATCHES "tcmalloc(_minimal)?") if(GPERFTOOLS_USE_STATIC_LIBS) -- 2.39.5