Merge pull request #13377 from wjwithagen/wip-wjw-freebsd-jemalloc

CMakeLists.txt: suppress unneeded warning about jemalloc
This commit is contained in:
Sage Weil 2017-02-13 18:47:29 -06:00 committed by GitHub
commit 625ffe8cc6

View File

@ -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)