2019-05-07 23:31:35 +00:00
|
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/simdjson/include/simdjson/jsonparser.h")
|
|
|
|
message (WARNING "submodule contrib/simdjson is missing. to fix try run: \n git submodule update --init --recursive")
|
|
|
|
return()
|
|
|
|
endif ()
|
|
|
|
|
2019-08-07 14:08:15 +00:00
|
|
|
if (NOT HAVE_SSE42)
|
|
|
|
message (WARNING "submodule contrib/simdjson requires support of SSE4.2 instructions")
|
|
|
|
return()
|
|
|
|
elseif (NOT HAVE_PCLMULQDQ)
|
|
|
|
message (WARNING "submodule contrib/simdjson requires support of PCLMULQDQ instructions")
|
2019-05-07 23:31:35 +00:00
|
|
|
return()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
option (USE_SIMDJSON "Use simdjson" ON)
|
|
|
|
set (SIMDJSON_LIBRARY "simdjson")
|
2019-05-15 17:19:39 +00:00
|
|
|
|
|
|
|
message(STATUS "Using simdjson=${USE_SIMDJSON}: ${SIMDJSON_LIBRARY}")
|