2
0
mirror of https://github.com/boostorg/cobalt.git synced 2026-01-19 04:02:16 +00:00

[build] added link for ws2_32.

This commit is contained in:
Klemens Morgenstern
2025-06-25 01:19:05 +08:00
parent 796124e193
commit 9bf763e12e
2 changed files with 6 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ if (NOT BOOST_COBALT_IS_ROOT)
target_compile_definitions(boost_cobalt PUBLIC _WIN32_WINNT=0x0601)
endif()
if(MINGW)
if(MINGW OR CYGWIN)
target_link_libraries(boost_cobalt PUBLIC ws2_32)
endif()
@@ -209,7 +209,7 @@ else()
target_compile_definitions(boost_cobalt PUBLIC _WIN32_WINNT=0x0601)
endif()
if(MINGW)
if(MINGW OR CYGWIN)
target_link_libraries(boost_cobalt PUBLIC ws2_32)
endif()

View File

@@ -13,6 +13,8 @@ import ac ;
using openssl ;
lib ws2_32 ; # NT
project : requirements
<define>BOOST_ASIO_NO_DEPRECATED
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
@@ -54,7 +56,7 @@ lib boost_cobalt
: <conditional>@set-pmr-std
: <conditional>@set-pmr-boost
]
<target-os>windows,<toolset>gcc:<library>ws2_32
: usage-requirements
<boost.cobalt.pmr>boost-container:<library>/boost/container//boost_container
<link>shared:<define>BOOST_COBALT_DYN_LINK=1
@@ -65,6 +67,7 @@ lib boost_cobalt
: <conditional>@set-pmr-std
: <conditional>@set-pmr-boost
]
<target-os>windows,<toolset>gcc:<library>ws2_32
;
alias cobalt_io_sources