ClickHouse/base/poco/XML/CMakeLists.txt

50 lines
1.4 KiB
CMake
Raw Normal View History

# Poco::XML (expat)
file (GLOB SRCS_EXPAT src/xml*.c)
add_library (_poco_xml_expat ${SRCS_EXPAT})
add_library (Poco::XML::Expat ALIAS _poco_xml_expat)
2023-02-07 17:58:15 +00:00
# TODO: remove these warning exclusions
target_compile_options (_poco_xml_expat
PRIVATE
-Wno-cast-qual
-Wno-empty-translation-unit
-Wno-extra-semi-stmt
-Wno-implicit-fallthrough
-Wno-reserved-identifier
-Wno-unused-macros
)
target_include_directories (_poco_xml_expat PUBLIC "include")
target_include_directories (_poco_xml_expat PRIVATE "../Foundation/include")
# Poco::XML
file (GLOB SRCS src/*.cpp)
add_library (_poco_xml ${SRCS})
add_library (Poco::XML ALIAS _poco_xml)
2023-02-07 17:58:15 +00:00
# TODO: remove these warning exclusions
target_compile_options (_poco_xml
PRIVATE
-Wno-cast-qual
-Wno-deprecated-dynamic-exception-spec
-Wno-implicit-fallthrough
-Wno-missing-noreturn
-Wno-old-style-cast
-Wno-reserved-identifier
-Wno-shadow
-Wno-shorten-64-to-32
-Wno-suggest-destructor-override
-Wno-suggest-override
-Wno-tautological-type-limit-compare
2023-02-09 09:55:23 +00:00
-Wno-tautological-unsigned-zero-compare
2023-02-07 17:58:15 +00:00
-Wno-unreachable-code
-Wno-unused-macros
-Wno-unused-parameter
-Wno-zero-as-null-pointer-constant
)
target_include_directories (_poco_xml SYSTEM PUBLIC "include")
target_link_libraries (_poco_xml PUBLIC Poco::Foundation Poco::XML::Expat)