Commit 178916e6 authored by Lotrado's avatar Lotrado
Browse files

Silenced winsock deprecation warning in enet on MSVC.

parent ae00ec9c
......@@ -72,7 +72,11 @@ target_include_directories(enet PUBLIC
$<INSTALL_INTERFACE:include>)
if(WIN32)
target_link_libraries(enet winmm ws2_32)
target_link_libraries(enet PUBLIC winmm ws2_32)
endif()
if(MSVC)
target_compile_definitions(enet PRIVATE _WINSOCK_DEPRECATED_NO_WARNINGS)
endif()
install(TARGETS enet EXPORT enetTargets
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment