From: Gustavo Rocha Dias Date: Sat, 13 Dec 2025 11:46:36 +0000 (-0300) Subject: cmake: correct scope - link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17972) X-Git-Tag: upstream/0.0.7446~61 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=66ba51252ed1cf08739fbed8a538d3cb3541655d;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake: correct scope - link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17972) * fix - w64devkit build * fix - w64devkit build private scope --- diff --git a/vendor/cpp-httplib/CMakeLists.txt b/vendor/cpp-httplib/CMakeLists.txt index e90e8e2d..8f0d15d1 100644 --- a/vendor/cpp-httplib/CMakeLists.txt +++ b/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