From: Gustavo Rocha Dias Date: Fri, 12 Dec 2025 11:02:28 +0000 (-0300) Subject: cmake: link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17949) X-Git-Tag: upstream/0.0.7446~83 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2eaa2c65cbc2e532e2353e115bf5151a82704534;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake: link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17949) --- diff --git a/vendor/cpp-httplib/CMakeLists.txt b/vendor/cpp-httplib/CMakeLists.txt index 369502d7..e90e8e2d 100644 --- a/vendor/cpp-httplib/CMakeLists.txt +++ b/vendor/cpp-httplib/CMakeLists.txt @@ -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