]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake: correct scope - link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17972)
authorGustavo Rocha Dias <redacted>
Sat, 13 Dec 2025 11:46:36 +0000 (08:46 -0300)
committerGitHub <redacted>
Sat, 13 Dec 2025 11:46:36 +0000 (12:46 +0100)
* fix - w64devkit build

* fix - w64devkit build private scope

vendor/cpp-httplib/CMakeLists.txt

index e90e8e2d1b8accb13ec2cb47b7998824a71ab4cd..8f0d15d1fd3b51550674ffabfb8215e7b2405c86 100644 (file)
@@ -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