diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 62b7b33..9b0e2e1 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -107,7 +107,9 @@ endif() target_link_libraries(${LIB_NAME} ${CURL_LIBS}) -if(WIN32) +if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") + add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS) +elseif(WIN32) add_definitions(-D_USRDLL) endif()