mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
caf83a650e
* Allow use bundled *ssl library * fix * Add submodule * Fixes * fix * fixes * fixes * fix * fix * update poco * fix warnings * fix * fix * Build fixes * Build fixes * fix * fix * fix * fix * fix * fix * fix * add bat * no zookeeper in dbms * update boost * fixes * fixes * fix * fix * fix * fix * try fix * try fix * fix * fix * fix * fix * fix * fix * fix * fix * Better * fix * dh verbose * fix * dh verbose * fix * clean * Update LocalDate.h * Update LocalDateTime.h
33 lines
1.3 KiB
CMake
33 lines
1.3 KiB
CMake
if (ARCH_FREEBSD OR ARCH_32)
|
|
option (USE_INTERNAL_GPERFTOOLS_LIBRARY "Set to FALSE to use system gperftools (tcmalloc) library instead of bundled" OFF)
|
|
else ()
|
|
option (USE_INTERNAL_GPERFTOOLS_LIBRARY "Set to FALSE to use system gperftools (tcmalloc) library instead of bundled" ${NOT_UNBUNDLED})
|
|
endif ()
|
|
|
|
if (ARCH_FREEBSD OR MSVC)
|
|
option (ENABLE_TCMALLOC "Set to TRUE to enable tcmalloc" OFF)
|
|
else ()
|
|
option (ENABLE_TCMALLOC "Set to TRUE to enable tcmalloc" ON)
|
|
endif ()
|
|
|
|
option (DEBUG_TCMALLOC "Set to TRUE to use debug version of libtcmalloc" OFF)
|
|
|
|
if (ENABLE_TCMALLOC)
|
|
#contrib/libtcmalloc doesnt build debug version, try find in system
|
|
if (DEBUG_TCMALLOC OR NOT USE_INTERNAL_GPERFTOOLS_LIBRARY)
|
|
find_package (Gperftools)
|
|
endif ()
|
|
|
|
if (NOT (GPERFTOOLS_FOUND AND GPERFTOOLS_INCLUDE_DIR AND GPERFTOOLS_TCMALLOC_MINIMAL) AND NOT (ARCH_FREEBSD OR ARCH_32))
|
|
set (USE_INTERNAL_GPERFTOOLS_LIBRARY 1)
|
|
set (GPERFTOOLS_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libtcmalloc/include")
|
|
set (GPERFTOOLS_TCMALLOC_MINIMAL tcmalloc_minimal_internal)
|
|
endif ()
|
|
|
|
if (GPERFTOOLS_FOUND OR USE_INTERNAL_GPERFTOOLS_LIBRARY)
|
|
set (USE_TCMALLOC 1)
|
|
endif ()
|
|
|
|
message (STATUS "Using tcmalloc=${USE_TCMALLOC}: ${GPERFTOOLS_INCLUDE_DIR} : ${GPERFTOOLS_TCMALLOC_MINIMAL}")
|
|
endif ()
|