vcpkg/ports/curl/0002_fix_uwp.patch

16 lines
522 B
Diff
Raw Normal View History

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