ClickHouse/base/poco/Net/CMakeLists.txt

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

40 lines
1.1 KiB
CMake
Raw Normal View History

file (GLOB SRCS src/*.cpp)
add_library (_poco_net ${SRCS})
add_library (Poco::Net ALIAS _poco_net)
if (OS_LINUX)
target_compile_definitions (_poco_net PUBLIC POCO_HAVE_FD_EPOLL)
elseif (OS_DARWIN OR OS_FREEBSD)
target_compile_definitions (_poco_net PUBLIC POCO_HAVE_FD_POLL)
endif ()
2023-02-07 17:40:38 +00:00
# TODO: remove these warning exclusions
target_compile_options (_poco_net
PRIVATE
-Wno-atomic-implicit-seq-cst
2023-02-07 17:40:38 +00:00
-Wno-cast-align
-Wno-cast-qual
-Wno-comma
-Wno-covered-switch-default
-Wno-deprecated
-Wno-extra-semi
2023-02-07 17:40:38 +00:00
-Wno-extra-semi-stmt
-Wno-missing-noreturn
-Wno-old-style-cast
-Wno-shadow
-Wno-shorten-64-to-32
-Wno-sign-compare
-Wno-suggest-destructor-override
-Wno-suggest-override
-Wno-undef
-Wno-unreachable-code
-Wno-unreachable-code-return
-Wno-unused-macros
-Wno-unused-parameter
-Wno-zero-as-null-pointer-constant
)
2023-02-07 17:40:38 +00:00
target_include_directories (_poco_net SYSTEM PUBLIC "include")
target_link_libraries (_poco_net PUBLIC Poco::Foundation)