Skip to content

Commit 66ba512

Browse files
authored
cmake: correct scope - link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17972)
* fix - w64devkit build * fix - w64devkit build private scope
1 parent 36255a2 commit 66ba512

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vendor/cpp-httplib/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ endif()
1111
target_link_libraries (${TARGET} PRIVATE Threads::Threads)
1212

1313
if (WIN32 AND NOT MSVC)
14-
target_link_libraries(${TARGET} PUBLIC ws2_32)
14+
target_link_libraries(${TARGET} PRIVATE ws2_32)
1515
endif()
16+
1617
target_compile_features(${TARGET} PRIVATE cxx_std_17)
1718

1819
target_compile_definitions(${TARGET} PRIVATE

0 commit comments

Comments
 (0)