vcpkg/ports/curl/0002_fix_uwp.patch
NancyLi1013 dea76199aa
[curl] Fix static build (#12800)
* [curl] Fix static build

* Add static patch
2020-08-12 10:23:44 -07:00

16 lines
392 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()