-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for cpr 1.6.2 * Limit darwinssl to macos * Refactor SSL options to use string value * Style fixes * Use new deprecation form * Remove f-strings * Move overriding of options to configure_options * Remove stray typechecking import * Remove unneeded error checking for ssl validators * Remove unneeded change of libcurl ssl * Require CURL in 1.6 builds
- Loading branch information
Showing
5 changed files
with
148 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -120,29 +120,11 @@ endif() | ||
|
||
# Curl configuration | ||
if(CPR_FORCE_USE_SYSTEM_CURL) | ||
- if(CPR_ENABLE_SSL) | ||
- find_package(CURL COMPONENTS HTTP HTTPS SSL) | ||
- if(CURL_FOUND) | ||
- message(STATUS "Curl ${CURL_VERSION_STRING} found on this system.") | ||
- # To be able to load certificates under Windows when using OpenSSL: | ||
- if(CMAKE_USE_OPENSSL AND WIN32 AND (NOT (CURL_VERSION_STRING VERSION_GREATER_EQUAL "7.71.0"))) | ||
- message(FATAL_ERROR "Your system curl version (${CURL_VERSION_STRING}) is too old to support OpenSSL on Windows which requires curl >= 7.71.0. Update your curl version, use WinSSL, disable SSL or use the build in version of curl.") | ||
- endif() | ||
- else() | ||
- find_package(CURL COMPONENTS HTTP) | ||
- if(CURL_FOUND) | ||
- message(FATAL_ERROR "Curl found on this system but WITHOUT HTTPS/SSL support. Either disable SSL by setting CPR_ENABLE_SSL to OFF or use the build in version of curl by setting CPR_FORCE_USE_SYSTEM_CURL to OFF.") | ||
- else() | ||
- message(FATAL_ERROR "Curl not found on this system. To use the build in version set CPR_FORCE_USE_SYSTEM_CURL to OFF.") | ||
- endif() | ||
- endif() | ||
+ find_package(CURL REQUIRED) | ||
+ if(CURL_FOUND) | ||
+ message(STATUS "Curl found on this system.") | ||
else() | ||
- find_package(CURL COMPONENTS HTTP) | ||
- if(CURL_FOUND) | ||
- message(STATUS "Curl found on this system.") | ||
- else() | ||
- message(FATAL_ERROR "Curl not found on this system. To use the build in version set CPR_FORCE_USE_SYSTEM_CURL to OFF.") | ||
- endif() | ||
+ message(FATAL_ERROR "Curl not found on this system. To use the build in version set CPR_FORCE_USE_SYSTEM_CURL to OFF.") | ||
endif() | ||
else() | ||
message(STATUS "Configuring build in curl...") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ versions: | |
folder: all | ||
"1.6.0": | ||
folder: all | ||
"1.6.2": | ||
folder: all |