From ce3b71acd2018b17fb52a8e9db935715d429f57a Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Sun, 12 Feb 2017 15:03:56 +0100 Subject: [PATCH] CMakeLists.txt: suppress unneeded warningiabout jemalloc Signed-off-by: Willem Jan Withagen --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff01baf3797..c967cfb9094 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -286,7 +286,10 @@ else(ALLOCATOR) elseif(JEMALLOC_FOUND) set(ALLOCATOR jemalloc) else() - message(WARNING "tcmalloc and jemalloc not found, falling back to libc") + if(NOT FREEBSD) + # FreeBSD already has jemalloc as its default allocator + message(WARNING "tcmalloc and jemalloc not found, falling back to libc") + endif() set(ALLOCATOR "libc") endif(GPERFTOOLS_FOUND) endif(ALLOCATOR) -- 2.47.3