mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 23:22:57 +08:00
08a6cdd73b
* [curl] Update to 8.3.0 * Add explicit usage * Fix CMake 3.7 compatibility * Update copyright * Update vcpkg-cmake-wrapper
16 lines
522 B
Diff
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})
|
|
|