]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake: link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17949)
authorGustavo Rocha Dias <redacted>
Fri, 12 Dec 2025 11:02:28 +0000 (08:02 -0300)
committerGitHub <redacted>
Fri, 12 Dec 2025 11:02:28 +0000 (12:02 +0100)
vendor/cpp-httplib/CMakeLists.txt

index 369502d7aecd40b0fe8ed30d59767434f6feb9fe..e90e8e2d1b8accb13ec2cb47b7998824a71ab4cd 100644 (file)
@@ -9,6 +9,10 @@ if (NOT MSVC)
 endif()
 
 target_link_libraries  (${TARGET} PRIVATE Threads::Threads)
+
+if (WIN32 AND NOT MSVC)
+    target_link_libraries(${TARGET} PUBLIC ws2_32)
+endif()
 target_compile_features(${TARGET} PRIVATE cxx_std_17)
 
 target_compile_definitions(${TARGET} PRIVATE