win10: fix linkage to deprecated wsock32 api.

This commit is contained in:
Anton Fedchin 2017-11-01 21:25:09 +03:00 committed by Julian Scheel
parent e9b4c05de5
commit f1f8d44b78
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ set(OCTONET_HEADERS
build_addon(pvr.octonet OCTONET DEPLIBS)
if(WIN32)
target_link_libraries(pvr.octonet wsock32 ws2_32)
if(NOT CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
target_link_libraries(pvr.octonet wsock32 ws2_32)
else()
target_link_libraries(pvr.octonet ws2_32)
endif()
endif()
include(CPack)