Skip to content

Commit

Permalink
win10: fix linkage to deprecated wsock32 api.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fedchin authored and julianscheel committed Nov 2, 2017
1 parent e9b4c05 commit f1f8d44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f1f8d44

Please sign in to comment.