Skip to content

Commit 2ac514e

Browse files
committed
Fix building with CMake on MinGW-w64.
1 parent 61cf72a commit 2ac514e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ if (NOT BOOST_COBALT_IS_ROOT)
6060
Boost::variant2
6161
)
6262

63+
if(MINGW)
64+
target_link_libraries(boost_cobalt
65+
PRIVATE
66+
ws2_32
67+
)
68+
endif()
69+
6370
target_compile_definitions(boost_cobalt
6471
PUBLIC BOOST_COBALT_NO_LIB=1
6572
PRIVATE BOOST_COBALT_SOURCE=1

0 commit comments

Comments
 (0)