mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
12 lines
405 B
CMake
12 lines
405 B
CMake
option(ENABLE_RAPIDJSON "Use rapidjson" ${ENABLE_LIBRARIES})
|
|
|
|
if(NOT ENABLE_RAPIDJSON)
|
|
message(STATUS "Not using rapidjson")
|
|
return()
|
|
endif()
|
|
|
|
set(RAPIDJSON_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/rapidjson/include")
|
|
add_library(_rapidjson INTERFACE)
|
|
target_include_directories(_rapidjson SYSTEM BEFORE INTERFACE ${RAPIDJSON_INCLUDE_DIR})
|
|
add_library(ch_contrib::rapidjson ALIAS _rapidjson)
|