mirror of https://github.com/microsoft/vcpkg.git
16 lines
470 B
Diff
16 lines
470 B
Diff
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
|
index 8cea346c3..967312905 100644
|
|
--- a/lib/CMakeLists.txt
|
|
+++ b/lib/CMakeLists.txt
|
|
@@ -118,6 +118,10 @@ if(CURL_HAS_LTO)
|
|
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE)
|
|
endif()
|
|
|
|
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
+ set_property(TARGET ${LIB_NAME} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS")
|
|
+endif()
|
|
+
|
|
if(WIN32)
|
|
if(BUILD_SHARED_LIBS)
|
|
if(MSVC)
|