build : link ws2_32 as PUBLIC on Windows (#19666)

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2026-02-17 08:37:07 +01:00
committed by GitHub
parent 65cede7c70
commit ae46a61e41
2 changed files with 1 additions and 5 deletions
+1 -1
View 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)