ClickHouse/base/poco/Net/CMakeLists.txt
Robert Schulze b79ead9c84
Move poco to base/poco/ (#46075)
* Replicate poco into base/poco/

* De-register poco submodule

* Build poco from ClickHouse

* Exclude poco from stylecheck

* Exclude poco from whitespace check

* Exclude poco from typo check

* Remove x bit from sources/headers (the style check complained)

* Exclude poco from duplicate include check

* Fix fasttest

* Remove contrib/poco-cmake/*

* Simplify poco build descriptions

* Remove poco stuff not used by ClickHouse

* Glob poco sources

* Exclude poco from clang-tidy
2023-02-08 12:04:11 +01:00

26 lines
651 B
CMake

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 ()
target_compile_options (_poco_net
PRIVATE
-Wno-atomic-implicit-seq-cst
-Wno-extra-semi-stmt
-Wno-extra-semi
)
target_compile_options (_poco_net
PRIVATE
-Wno-deprecated
-Wno-extra-semi
)
target_include_directories (_poco_net SYSTEM PUBLIC "include")
target_link_libraries (_poco_net PUBLIC Poco::Foundation)