22 lines
731 B
CMake
22 lines
731 B
CMake
void_add_module(Net
|
|
INTERNAL_DEPS Functional Text
|
|
EXTERNAL_DEPS
|
|
Boost::headers
|
|
Boost::beast
|
|
Boost::asio
|
|
Boost::url
|
|
OpenSSL::SSL
|
|
OpenSSL::Crypto
|
|
Threads::Threads
|
|
)
|
|
|
|
if(VOID_ENABLE_TSAN AND TARGET Void_Net)
|
|
# Boost.Asio 1.84's std_fenced_block calls std::atomic_thread_fence, which
|
|
# GCC warns is unsupported under -fsanitize=thread (-Werror=tsan). Keep
|
|
# hardware fences intact and scope the diagnostic suppression solely to
|
|
# Http.cpp so HttpServer.cpp and all other TUs keep full -Werror=tsan.
|
|
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/Http.cpp"
|
|
PROPERTIES COMPILE_OPTIONS "$<$<CXX_COMPILER_ID:GNU>:-Wno-tsan>"
|
|
)
|
|
endif()
|