mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
d456aa86ef
This reverts commit 89419ceb9b
(curl part moved to separate commit)
Squashed:
- termcap removed
- fix for cassandra on apple merged
- cmake: fix "Can't find system zlib library" in unbundled build
- cmake: fix condition when testing for rdkafka platform
- cmake: PROTOBUF_OLD_ABI_COMPAT shouldn't be enabled for internal protobuf
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
25 lines
1021 B
CMake
25 lines
1021 B
CMake
option(ENABLE_STATS "Enalbe StatsLib library" ${ENABLE_LIBRARIES})
|
|
|
|
if (ENABLE_STATS)
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/stats")
|
|
message (WARNING "submodule contrib/stats is missing. to fix try run: \n git submodule update --init --recursive")
|
|
set (ENABLE_STATS 0)
|
|
set (USE_STATS 0)
|
|
elseif (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/gcem")
|
|
message (WARNING "submodule contrib/gcem is missing. to fix try run: \n git submodule update --init --recursive")
|
|
set (ENABLE_STATS 0)
|
|
set (USE_STATS 0)
|
|
else()
|
|
set(STATS_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/stats/include)
|
|
set(GCEM_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/gcem/include)
|
|
set (USE_STATS 1)
|
|
endif()
|
|
|
|
if (NOT USE_STATS)
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't enable stats library")
|
|
endif()
|
|
endif()
|
|
|
|
message (STATUS "Using stats=${USE_STATS} : ${STATS_INCLUDE_DIR}")
|
|
message (STATUS "Using gcem=${USE_STATS}: ${GCEM_INCLUDE_DIR}")
|