From: Adam Kupczyk Date: Mon, 28 Aug 2017 12:45:05 +0000 (+0200) Subject: CMake: in case of bad "ALLOCATOR" selected issue warning X-Git-Tag: v13.0.1~833^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05f6b7fefb50137b3eb3c461c5b4b29ef92cde55;p=ceph.git CMake: in case of bad "ALLOCATOR" selected issue warning Signed-off-by: Adam Kupczyk --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a9936b1392dd..1eab353fd9c1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -295,6 +295,9 @@ elseif(ALLOCATOR STREQUAL "jemalloc") set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc) elseif(ALLOCATOR STREQUAL "libc") set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc) +else() + set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc) + message(WARNING "Possibly incorrect allocator selected:" ${ALLOCATOR}) endif() # tcmalloc heap profiler