mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
0e91c47066
* Allow build with external double-conversion lz4 zstd re2 zookeeper * fix * fix * freebsd fixes * spaces * fix * fix * fix * wip * move * fix
16 lines
463 B
CMake
16 lines
463 B
CMake
option (ENABLE_JEMALLOC "Set to TRUE to use jemalloc instead of tcmalloc" OFF)
|
|
|
|
if (ENABLE_JEMALLOC)
|
|
find_package(JeMalloc)
|
|
|
|
if (JEMALLOC_INCLUDE_DIR AND JEMALLOC_LIBRARIES)
|
|
include_directories (${JEMALLOC_INCLUDE_DIR})
|
|
set (USE_JEMALLOC 1)
|
|
if (USE_TCMALLOC)
|
|
message (WARNING "Disabling tcmalloc")
|
|
set (USE_TCMALLOC 0)
|
|
endif ()
|
|
endif ()
|
|
message (STATUS "Using jemalloc=${USE_JEMALLOC}: ${JEMALLOC_INCLUDE_DIR} : ${JEMALLOC_LIBRARIES}")
|
|
endif ()
|