vcpkg/ports/curl/0002_fix_uwp.patch
Kai Pastor 08a6cdd73b
[curl] Update to 8.3.0 (#33924)
* [curl] Update to 8.3.0

* Add explicit usage

* Fix CMake 3.7 compatibility

* Update copyright

* Update vcpkg-cmake-wrapper
2023-09-26 00:09:06 -07:00

16 lines
522 B
Diff

diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 9bb8f0b..7678f43 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -216,6 +216,10 @@ if(BUILD_SHARED_LIBS)
$<BUILD_INTERFACE:${CURL_SOURCE_DIR}/include>)
endif()
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ set_property(TARGET ${LIB_SELECTED} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS")
+endif()
+
add_library(${LIB_NAME} ALIAS ${LIB_SELECTED})
add_library(${PROJECT_NAME}::${LIB_NAME} ALIAS ${LIB_SELECTED})