mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
c4e1dc5545
It's disabled for clang because of mobile
e82198428c/lib/lz4.c (L471)
20 lines
638 B
CMake
20 lines
638 B
CMake
# lz4 is the main compression method, cannot be disabled.
|
|
|
|
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/lz4")
|
|
set (SRCS
|
|
"${LIBRARY_DIR}/lib/lz4.c"
|
|
"${LIBRARY_DIR}/lib/lz4hc.c"
|
|
"${LIBRARY_DIR}/lib/lz4frame.c"
|
|
"${LIBRARY_DIR}/lib/xxhash.c"
|
|
)
|
|
|
|
add_library (_lz4 ${SRCS})
|
|
add_library (ch_contrib::lz4 ALIAS _lz4)
|
|
|
|
target_compile_definitions (_lz4 PUBLIC LZ4_DISABLE_DEPRECATE_WARNINGS=1)
|
|
target_compile_definitions (_lz4 PUBLIC LZ4_FAST_DEC_LOOP=1)
|
|
if (SANITIZE STREQUAL "undefined")
|
|
target_compile_options (_lz4 PRIVATE -fno-sanitize=undefined)
|
|
endif ()
|
|
target_include_directories(_lz4 PUBLIC "${LIBRARY_DIR}/lib")
|