vcpkg/ports/curl/0002_fix_uwp.patch
NancyLi1013 f12d986e6a
[curl] Update to 7.71.0 (#12141)
* [curl] Update to 7.71.0

* Update to 7.71.1
2020-07-06 13:23:44 -07:00

16 lines
397 B
Diff

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()