From f1f8d44b7850ee7b1496fba03c835e5016d8c79d Mon Sep 17 00:00:00 2001 From: Anton Fedchin Date: Wed, 1 Nov 2017 21:25:09 +0300 Subject: [PATCH] win10: fix linkage to deprecated wsock32 api. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54923df..8482976 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)