mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
780341060f
- use sparsehash-c11 over libsparsehash - fix typos in find_sparsehash and users of the vars (s/SPARCE/SPARSE/) - drop libsparsehash-dev from docker images (but keep for unbunlded build) - use ::google over GOOGLE_NAMESPACE
14 lines
519 B
CMake
14 lines
519 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})
|
|
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}")
|