diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 9bb8f0b..7678f43 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -216,6 +216,10 @@ if(BUILD_SHARED_LIBS) $) endif() +if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") + set_property(TARGET ${LIB_SELECTED} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS") +endif() + add_library(${LIB_NAME} ALIAS ${LIB_SELECTED}) add_library(${PROJECT_NAME}::${LIB_NAME} ALIAS ${LIB_SELECTED})