mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 00:58: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:
parent
2c15693a3c
commit
59b284b6eb
@ -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)
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user