]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CMake: in case of bad "ALLOCATOR" selected issue warning
authorAdam Kupczyk <akupczyk@redhat.com>
Mon, 28 Aug 2017 12:45:05 +0000 (14:45 +0200)
committerAdam Kupczyk <akupczyk@redhat.com>
Mon, 28 Aug 2017 12:45:05 +0000 (14:45 +0200)
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/CMakeLists.txt

index a9936b1392dd3095db099dc2abcc110c953ad311..1eab353fd9c13a2fbda24081d32dd63eaa168677 100644 (file)
@@ -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