mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 13:30:25 +08:00
29 lines
706 B
Diff
29 lines
706 B
Diff
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
|
index 62b7b33..8a4bd71 100644
|
|
--- a/lib/CMakeLists.txt
|
|
+++ b/lib/CMakeLists.txt
|
|
@@ -107,6 +107,10 @@ endif()
|
|
|
|
target_link_libraries(${LIB_NAME} ${CURL_LIBS})
|
|
|
|
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
+ add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
|
|
+endif()
|
|
+
|
|
if(WIN32)
|
|
add_definitions(-D_USRDLL)
|
|
endif()
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 9e47967..7694f04 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -505,7 +505,7 @@ if(USE_QUICHE)
|
|
cmake_pop_check_state()
|
|
endif()
|
|
|
|
-if(WIN32)
|
|
+if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
set(USE_WIN32_CRYPTO ON)
|
|
endif()
|
|
|