ClickHouse/cmake/find_xxhash.cmake

16 lines
471 B
CMake
Raw Normal View History

2019-02-15 11:46:07 +00:00
# Freebsd: TODO: use system devel/xxhash. now error: undefined reference to `XXH32'
2019-02-19 10:29:44 +00:00
if (LZ4_INCLUDE_DIR)
2018-12-23 19:25:40 +00:00
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 ()
2019-02-19 10:29:44 +00:00
if (OS_FREEBSD AND NOT USE_INTERNAL_LZ4_LIBRARY)
set (USE_XXHASH 0)
endif ()
2018-12-23 19:25:40 +00:00
message (STATUS "Using xxhash=${USE_XXHASH}")