mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +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>
17 lines
654 B
CMake
17 lines
654 B
CMake
option (USE_INTERNAL_SPARSEHASH_LIBRARY "Set to FALSE to use system sparsehash library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT USE_INTERNAL_SPARSEHASH_LIBRARY)
|
|
find_path (SPARSEHASH_INCLUDE_DIR NAMES sparsehash/sparse_hash_map PATHS ${SPARSEHASH_INCLUDE_PATHS})
|
|
if (NOT SPARSEHASH_INCLUDE_DIR)
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't find system sparsehash library")
|
|
endif ()
|
|
endif ()
|
|
|
|
if (SPARSEHASH_INCLUDE_DIR)
|
|
else ()
|
|
set (USE_INTERNAL_SPARSEHASH_LIBRARY 1)
|
|
set (SPARSEHASH_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/sparsehash-c11")
|
|
endif ()
|
|
|
|
message (STATUS "Using sparsehash: ${SPARSEHASH_INCLUDE_DIR}")
|