cmake: correct scope - link ws2_32 for MinGW/w64devkit builds in cpp-httplib (#17972)

* fix - w64devkit build

* fix - w64devkit build private scope
This commit is contained in:
Gustavo Rocha Dias 2025-12-13 08:46:36 -03:00 committed by GitHub
parent 36255a2268
commit 66ba51252e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -11,8 +11,9 @@ endif()
target_link_libraries (${TARGET} PRIVATE Threads::Threads) target_link_libraries (${TARGET} PRIVATE Threads::Threads)
if (WIN32 AND NOT MSVC) if (WIN32 AND NOT MSVC)
target_link_libraries(${TARGET} PUBLIC ws2_32) target_link_libraries(${TARGET} PRIVATE ws2_32)
endif() endif()
target_compile_features(${TARGET} PRIVATE cxx_std_17) target_compile_features(${TARGET} PRIVATE cxx_std_17)
target_compile_definitions(${TARGET} PRIVATE target_compile_definitions(${TARGET} PRIVATE