mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 02:53:38 +00:00
16 lines
471 B
CMake
16 lines
471 B
CMake
# Freebsd: TODO: use system devel/xxhash. now error: undefined reference to `XXH32'
|
|
if (LZ4_INCLUDE_DIR)
|
|
if (NOT EXISTS "${LZ4_INCLUDE_DIR}/xxhash.h")
|
|
message (WARNING "LZ4 library does not have XXHash. Support for XXHash will be disabled.")
|
|
set (USE_XXHASH 0)
|
|
else ()
|
|
set (USE_XXHASH 1)
|
|
endif ()
|
|
endif ()
|
|
|
|
if (OS_FREEBSD AND NOT USE_INTERNAL_LZ4_LIBRARY)
|
|
set (USE_XXHASH 0)
|
|
endif ()
|
|
|
|
message (STATUS "Using xxhash=${USE_XXHASH}")
|