Skip to content

Commit 2eaa2c6

Browse files
authored
cmake: link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17949)
1 parent c33a58b commit 2eaa2c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vendor/cpp-httplib/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ if (NOT MSVC)
99
endif()
1010

1111
target_link_libraries (${TARGET} PRIVATE Threads::Threads)
12+
13+
if (WIN32 AND NOT MSVC)
14+
target_link_libraries(${TARGET} PUBLIC ws2_32)
15+
endif()
1216
target_compile_features(${TARGET} PRIVATE cxx_std_17)
1317

1418
target_compile_definitions(${TARGET} PRIVATE

0 commit comments

Comments
 (0)