]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
build : link ws2_32 as PUBLIC on Windows (#19666)
authorAdrien Gallouët <redacted>
Tue, 17 Feb 2026 07:37:07 +0000 (08:37 +0100)
committerGitHub <redacted>
Tue, 17 Feb 2026 07:37:07 +0000 (08:37 +0100)
Signed-off-by: Adrien Gallouët <redacted>
tools/server/CMakeLists.txt
vendor/cpp-httplib/CMakeLists.txt

index 8c8ec18831931f460d74608f8d0d9626d2ef0b0f..5621a51b226e0e61b86ff007d3ef7b14765e3994 100644 (file)
@@ -59,8 +59,4 @@ target_include_directories(${TARGET} PRIVATE ../mtmd)
 target_include_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR})
 target_link_libraries(${TARGET} PRIVATE server-context PUBLIC common cpp-httplib ${CMAKE_THREAD_LIBS_INIT})
 
-if (WIN32)
-    TARGET_LINK_LIBRARIES(${TARGET} PRIVATE ws2_32)
-endif()
-
 target_compile_features(${TARGET} PRIVATE cxx_std_17)
index a5887476af57573d60bf6f382fd94d0f8fae8d26..f2d3f980050733ee60624ad31631b24d7fed40ca 100644 (file)
@@ -17,7 +17,7 @@ endif()
 target_link_libraries(${TARGET} PRIVATE Threads::Threads)
 
 if (WIN32 AND NOT MSVC)
-    target_link_libraries(${TARGET} PRIVATE ws2_32)
+    target_link_libraries(${TARGET} PUBLIC ws2_32)
 endif()
 
 target_compile_features(${TARGET} PRIVATE cxx_std_17)