mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
14 lines
380 B
CMake
14 lines
380 B
CMake
|
if (ENABLE_JEMALLOC)
|
||
|
find_package(JeMalloc)
|
||
|
include_directories (${JEMALLOC_INCLUDE_DIR})
|
||
|
|
||
|
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 ()
|