Skip to content

Commit

Permalink
Fix building with CMake on MinGW-w64.
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune committed Feb 16, 2025
1 parent 61cf72a commit 2ac514e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ if (NOT BOOST_COBALT_IS_ROOT)
Boost::variant2
)

if(MINGW)
target_link_libraries(boost_cobalt
PRIVATE
ws2_32
)
endif()

target_compile_definitions(boost_cobalt
PUBLIC BOOST_COBALT_NO_LIB=1
PRIVATE BOOST_COBALT_SOURCE=1
Expand Down

0 comments on commit 2ac514e

Please sign in to comment.