mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
12 lines
525 B
CMake
12 lines
525 B
CMake
set(SIMDJSON_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/simdjson/include")
|
|
set(SIMDJSON_SRC_DIR "${ClickHouse_SOURCE_DIR}/contrib/simdjson/src")
|
|
set(SIMDJSON_SRC "${SIMDJSON_SRC_DIR}/simdjson.cpp")
|
|
|
|
add_library(simdjson ${SIMDJSON_SRC})
|
|
target_include_directories(simdjson SYSTEM PUBLIC "${SIMDJSON_INCLUDE_DIR}" PRIVATE "${SIMDJSON_SRC_DIR}")
|
|
|
|
# simdjson is using its own CPU dispatching and get confused if we enable AVX/AVX2 flags.
|
|
if(ARCH_AMD64)
|
|
target_compile_options(simdjson PRIVATE -mno-avx -mno-avx2)
|
|
endif()
|