mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
19 lines
578 B
CMake
19 lines
578 B
CMake
|
if(ARCH_S390X)
|
||
|
option (ENABLE_CRC32_S390X "Enable crc32 on s390x platform" ON)
|
||
|
endif()
|
||
|
|
||
|
if (NOT ENABLE_CRC32_S390X)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
set(CRC32_S390X_SOURCE_DIR ${ClickHouse_SOURCE_DIR}/contrib/crc32-s390x)
|
||
|
set(CRC32_S390X_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/crc32-s390x)
|
||
|
|
||
|
set(CRC32_SRCS "${CRC32_S390X_SOURCE_DIR}/crc32-s390x.c")
|
||
|
|
||
|
add_library(_crc32_s390x ${CRC32_SRCS})
|
||
|
|
||
|
target_include_directories(_crc32_s390x SYSTEM PUBLIC "${CRC32_S390X_INCLUDE_DIR}")
|
||
|
target_compile_definitions(_crc32_s390x PUBLIC)
|
||
|
|
||
|
add_library(ch_contrib::crc32_s390x ALIAS _crc32_s390x)
|