ClickHouse/base/poco/JSON/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1023 B
CMake
Raw Normal View History

# Poco::JSON (pdjson)
set (SRCS_PDJSON
src/pdjson.c
)
add_library (_poco_json_pdjson ${SRCS_PDJSON})
add_library (Poco::JSON::Pdjson ALIAS _poco_json_pdjson)
2023-02-07 18:35:25 +00:00
# TODO: remove these warning exclusions
target_compile_options (_poco_json_pdjson
PRIVATE
-Wno-cast-qual
-Wno-declaration-after-statement
-Wno-extra-semi-stmt
-Wno-implicit-fallthrough
-Wno-shorten-64-to-32
-Wno-unreachable-code-return
)
# Poco::JSON
file (GLOB SRCS src/*.cpp)
add_library (_poco_json ${SRCS})
add_library (Poco::JSON ALIAS _poco_json)
2023-02-07 18:35:25 +00:00
# TODO: remove these warning exclusions
target_compile_options (_poco_json
PRIVATE
-Wno-deprecated-dynamic-exception-spec
-Wno-sign-compare
-Wno-suggest-destructor-override
-Wno-suggest-override
-Wno-unused-parameter
-Wno-zero-as-null-pointer-constant
)
target_include_directories (_poco_json SYSTEM PUBLIC "include")
target_link_libraries (_poco_json PUBLIC Poco::Foundation Poco::JSON::Pdjson)