1
1
include (vcpkg_common_functions)
2
2
3
- set (VERSION 7.72 .0)
3
+ set (VERSION 7.73 .0)
4
4
string (REPLACE "." "_" TAG ${VERSION} )
5
5
6
6
# Get archive
7
7
vcpkg_download_distfile(ARCHIVE
8
8
URLS "https://github.com/curl/curl/releases/download/curl-${TAG} /curl-${VERSION} .zip"
9
9
FILENAME "curl-${VERSION} .zip"
10
- SHA512 3018061bd33c1c1b8d8b45122540a36846b556a8ade75d176532114f26973aed0b643c8baa0166493519ebcc29385e4b6e8bfcd761e594003971cdbe807d49f3
10
+ SHA512 66fe22da8a24199f244c501007f51a7188c1f5ae145ad88a247254ee2f612ae3a71c636a5214a2e8518eeaf54849a992f1b8eab1ef9a4b7bac08419931d28185
11
11
)
12
12
13
13
# Patches
@@ -23,10 +23,6 @@ vcpkg_extract_source_archive_ex(
23
23
PATCHES ${PATCHES}
24
24
)
25
25
26
- # Add CMake find module for Brotli that's missing from the distribution
27
- # Remove once https://github.com/curl/curl/pull/5836 lands in a release
28
- file (COPY ${CMAKE_CURRENT_LIST_DIR} /build /CMake/FindBrotli.cmake DESTINATION ${SOURCE_PATH} /CMake)
29
-
30
26
# Run CMake build
31
27
set (BUILD_OPTIONS
32
28
# BUILD options
@@ -52,18 +48,30 @@ set(BUILD_OPTIONS
52
48
-DCURL_DISABLE_POP3=ON
53
49
-DCURL_DISABLE_PROXY=OFF
54
50
-DCURL_DISABLE_RTSP=ON
51
+ -DCURL_DISABLE_SMB=ON
55
52
-DCURL_DISABLE_SMTP=ON
56
53
-DCURL_DISABLE_TELNET=ON
57
54
-DCURL_DISABLE_TFTP=ON
55
+ -DCURL_ENABLE_MQTT=OFF
58
56
# ENABLE options
59
57
-DENABLE_ARES=OFF
60
58
-DENABLE_MANUAL=OFF
61
59
-DENABLE_THREADED_RESOLVER=ON
60
+ -DENABLE_UNIX_SOCKETS=OFF
62
61
# USE options
63
62
-DUSE_NGHTTP2=ON
64
63
-DUSE_WIN32_LDAP=OFF
65
64
)
66
65
66
+ # Check for ca-bundle feature
67
+ if (ca-bundle IN_LIST FEATURES)
68
+ message (STATUS "Enabling CA bundle" )
69
+ set (BUILD_OPTIONS ${BUILD_OPTIONS} -DCURL_CA_BUNDLE=auto -DCURL_CA_PATH=auto)
70
+ else ()
71
+ message (STATUS "Disabling CA bundle" )
72
+ set (BUILD_OPTIONS ${BUILD_OPTIONS} -DCURL_CA_BUNDLE=none -DCURL_CA_PATH=none)
73
+ endif ()
74
+
67
75
# Check for IPV6 feature
68
76
if (ipv6 IN_LIST FEATURES)
69
77
message (STATUS "Enabling IPV6" )
@@ -87,7 +95,7 @@ if (NOT ssl IN_LIST FEATURES)
87
95
88
96
if (VCPKG_WINDOWS)
89
97
set (USE_OPENSSL OFF )
90
- set (USE_WINSSL ON )
98
+ set (USE_SCHANNEL ON )
91
99
endif ()
92
100
endif ()
93
101
@@ -110,7 +118,7 @@ vcpkg_configure_cmake(
110
118
${BUILD_OPTIONS}
111
119
-DCURL_STATICLIB=${CURL_STATICLIB}
112
120
-DCMAKE_USE_OPENSSL=${USE_OPENSSL}
113
- -DCMAKE_USE_WINSSL =${USE_WINSSL }
121
+ -DCMAKE_USE_SCHANNEL =${USE_SCHANNEL }
114
122
OPTIONS_DEBUG
115
123
-DENABLE_DEBUG=ON
116
124
)
0 commit comments