mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
b40de44891
This fixes a HIGH severity vulnerability: https://daniel.haxx.se/blog/2023/10/11/curl-8-4-0/ See also: https://daniel.haxx.se/blog/2023/10/11/how-i-made-a-heap-overflow-in-curl/ Resolves: https://github.com/microsoft/vcpkg/issues/34281
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
|
index 6f84919..b838245 100644
|
|
--- a/lib/CMakeLists.txt
|
|
+++ b/lib/CMakeLists.txt
|
|
@@ -162,6 +162,9 @@ if(BUILD_STATIC_LIBS)
|
|
INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
|
|
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE)
|
|
endif()
|
|
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
+ set_property(TARGET ${LIB_STATIC} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS")
|
|
+ endif()
|
|
if(CMAKEVERSION AND CMAKESONAME)
|
|
set_target_properties(${LIB_STATIC} PROPERTIES
|
|
VERSION ${CMAKEVERSION} SOVERSION ${CMAKESONAME})
|
|
@@ -197,6 +200,9 @@ if(BUILD_SHARED_LIBS)
|
|
INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
|
|
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE)
|
|
endif()
|
|
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
+ set_property(TARGET ${LIB_SHARED} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS")
|
|
+ endif()
|
|
if(CMAKEVERSION AND CMAKESONAME)
|
|
set_target_properties(${LIB_SHARED} PROPERTIES
|
|
VERSION ${CMAKEVERSION} SOVERSION ${CMAKESONAME})
|