From 05f6b7fefb50137b3eb3c461c5b4b29ef92cde55 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Mon, 28 Aug 2017 14:45:05 +0200 Subject: [PATCH] CMake: in case of bad "ALLOCATOR" selected issue warning Signed-off-by: Adam Kupczyk --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a9936b1392d..1eab353fd9c 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 -- 2.47.3