mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
0e91c47066
* Allow build with external double-conversion lz4 zstd re2 zookeeper * fix * fix * freebsd fixes * spaces * fix * fix * fix * wip * move * fix
16 lines
614 B
CMake
16 lines
614 B
CMake
option (USE_INTERNAL_SPARCEHASH_LIBRARY "Set to FALSE to use system sparsehash library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT USE_INTERNAL_SPARCEHASH_LIBRARY)
|
|
find_path (SPARCEHASH_INCLUDE_DIR NAMES sparsehash/sparse_hash_map PATHS ${SPARCEHASH_INCLUDE_PATHS})
|
|
endif ()
|
|
|
|
if (SPARCEHASH_INCLUDE_DIR)
|
|
include_directories (${SPARCEHASH_INCLUDE_DIR})
|
|
else ()
|
|
set (USE_INTERNAL_SPARCEHASH_LIBRARY 1)
|
|
set (SPARCEHASH_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libsparsehash")
|
|
include_directories (BEFORE ${SPARCEHASH_INCLUDE_DIR})
|
|
endif ()
|
|
|
|
message (STATUS "Using sparsehash: ${SPARCEHASH_INCLUDE_DIR}")
|