1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 17:18:48 -05:00

cmake: allow multiple SSL backends

This will make possible to select the SSL backend (using
curl_global_sslset()) even when the libcurl is built using CMake

Closes #2665
This commit is contained in:
Raphael Gozzo 2018-06-17 13:26:44 -03:00 committed by Daniel Stenberg
parent 2c15693a3c
commit 59b284b6eb
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 4 additions and 1 deletions

View File

@ -316,7 +316,7 @@ collect_true(enabled_ssl_options enabled_ssl_options_count
CMAKE_USE_MBEDTLS CMAKE_USE_MBEDTLS
) )
if(enabled_ssl_options_count GREATER 1) if(enabled_ssl_options_count GREATER 1)
message(FATAL_ERROR "Multiple SSL options specified: ${enabled_ssl_options}. Please pick at most one and disable the rest.") set(CURL_WITH_MULTI_SSL ON)
endif() endif()
if(CMAKE_USE_WINSSL) if(CMAKE_USE_WINSSL)

View File

@ -966,6 +966,9 @@
/* to enable Windows SSL */ /* to enable Windows SSL */
#cmakedefine USE_SCHANNEL 1 #cmakedefine USE_SCHANNEL 1
/* enable multiple SSL backends */
#cmakedefine CURL_WITH_MULTI_SSL 1
/* Define to 1 if using yaSSL in OpenSSL compatibility mode. */ /* Define to 1 if using yaSSL in OpenSSL compatibility mode. */
#cmakedefine USE_YASSLEMUL 1 #cmakedefine USE_YASSLEMUL 1