2017-02-28 23:49:04 +00:00
|
|
|
option (USE_INTERNAL_SPARCEHASH_LIBRARY "Set to FALSE to use system sparsehash library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
|
|
|
|
if (NOT USE_INTERNAL_SPARCEHASH_LIBRARY)
|
2017-04-01 07:20:54 +00:00
|
|
|
find_path (SPARCEHASH_INCLUDE_DIR NAMES sparsehash/sparse_hash_map PATHS ${SPARCEHASH_INCLUDE_PATHS})
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (SPARCEHASH_INCLUDE_DIR)
|
|
|
|
else ()
|
2017-04-01 07:20:54 +00:00
|
|
|
set (USE_INTERNAL_SPARCEHASH_LIBRARY 1)
|
|
|
|
set (SPARCEHASH_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libsparsehash")
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
message (STATUS "Using sparsehash: ${SPARCEHASH_INCLUDE_DIR}")
|