vcpkg/ports/curl/0002_fix_uwp.patch
Lova Widmark b224213946
[curl] Update to 7.86.0 (#27778)
* [curl] Update to 7.86.0

* [azure-core-cpp] Add missing Ws2_32.lib.

Filed upstream as https://github.com/Azure/azure-sdk-for-cpp/pull/4127

* [aws-sdk-cpp] Lock the selected curl features.

Co-authored-by: FrankXie <v-frankxie@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-11-21 09:13:49 -08:00

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)