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:
committed by
GitHub
parent
36255a2268
commit
66ba51252e
Vendored
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user