Răsfoiți Sursa

cmake: correct scope - link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17972)

* fix - w64devkit build

* fix - w64devkit build private scope
Gustavo Rocha Dias 1 lună în urmă
părinte
comite
66ba51252e
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      vendor/cpp-httplib/CMakeLists.txt

+ 2 - 1
vendor/cpp-httplib/CMakeLists.txt

@@ -11,8 +11,9 @@ endif()
 target_link_libraries  (${TARGET} PRIVATE Threads::Threads)
 
 if (WIN32 AND NOT MSVC)
-    target_link_libraries(${TARGET} PUBLIC ws2_32)
+    target_link_libraries(${TARGET} PRIVATE ws2_32)
 endif()
+
 target_compile_features(${TARGET} PRIVATE cxx_std_17)
 
 target_compile_definitions(${TARGET} PRIVATE