Skip to content

Commit

Permalink
Update 'CURL' to v8.4.0 (#663)
Browse files Browse the repository at this point in the history
* Update 'CURL' to v7.88.1
* Update 'CURL' to v8.4.0
  • Loading branch information
hjmallon committed Oct 26, 2023
1 parent 97a8452 commit f1ecb94
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ hunter_default_version(BoringSSL VERSION 0.0.0-0f5ecd3a8-p0)
hunter_default_version(Box2D VERSION 2.3.1-p0)
hunter_default_version(CLAPACK VERSION 3.2.1)
hunter_default_version(CLI11 VERSION 2.3.2)
hunter_default_version(CURL VERSION 7.74.0-p2)
hunter_default_version(CURL VERSION 8.4.0-p0)
hunter_default_version(CapnProto VERSION 0.7.0)
hunter_default_version(Catch VERSION 2.13.9)
hunter_default_version(Clang VERSION 6.0.1-p0)
Expand Down
57 changes: 47 additions & 10 deletions cmake/projects/CURL/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,28 @@ hunter_add_version(
2f5c1a24e34fcced7c0ba8ab9f86859e7bceb63a
)

hunter_add_version(
PACKAGE_NAME
CURL
VERSION
"7.88.1-p0"
URL
"https://github.com/cpp-pm/curl/archive/refs/tags/v7.88.1-p0.tar.gz"
SHA1
a9f16354db1aa33c7635ff6542f03720202cd0ee
)

hunter_add_version(
PACKAGE_NAME
CURL
VERSION
"8.4.0-p0"
URL
"https://github.com/cpp-pm/curl/archive/refs/tags/v8.4.0-p0.tar.gz"
SHA1
ff363d2ab97a46561216682c6295f436c61bec9d
)

if (ANDROID OR IOS OR RASPBERRY_PI OR OPENWRT)
set(_curl_cmake_args
HAVE_FSETXATTR_5=0
Expand All @@ -126,16 +148,31 @@ else()
set(_curl_cmake_args "")
endif()

hunter_cmake_args(
CURL
CMAKE_ARGS
BUILD_CURL_TESTS=OFF
BUILD_CURL_EXE=OFF
CMAKE_USE_OPENSSL=ON
CMAKE_USE_LIBSSH2=OFF
BUILD_TESTING=OFF
${_curl_cmake_args}
)
if(HUNTER_CURL_VERSION VERSION_GREATER_EQUAL 7.81.0)
hunter_cmake_args(
CURL
CMAKE_ARGS
BUILD_CURL_TESTS=OFF
BUILD_CURL_EXE=OFF
CURL_USE_OPENSSL=ON
CURL_USE_LIBSSH2=OFF
CURL_DISABLE_LDAP=ON
BUILD_TESTING=OFF
USE_LIBIDN2=OFF
${_curl_cmake_args}
)
else()
hunter_cmake_args(
CURL
CMAKE_ARGS
BUILD_CURL_TESTS=OFF
BUILD_CURL_EXE=OFF
CMAKE_USE_OPENSSL=ON
CMAKE_USE_LIBSSH2=OFF
BUILD_TESTING=OFF
${_curl_cmake_args}
)
endif()

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(CURL)
Expand Down

0 comments on commit f1ecb94

Please sign in to comment.