mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
d6833a0d55
* Fix .h compile * Cmake: remove global include_directories * boost include hide * fix cctz * add \n
15 lines
464 B
CMake
15 lines
464 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)
|
|
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 ()
|