From: Kefu Chai Date: Mon, 6 Aug 2018 09:58:10 +0000 (+0800) Subject: cmake: add ALLOCATOR option X-Git-Tag: v14.0.1~640^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c81f143411c0e1395f474047b63d5740f5ef3476;p=ceph-ci.git cmake: add ALLOCATOR option ALLOCATOR is in fact an option.. Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index af27c909c5f..3709830d132 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)