]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: allow multiple SSL backends
authorRaphael Gozzo <raphael.rg91@gmail.com>
Sun, 17 Jun 2018 16:26:44 +0000 (13:26 -0300)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 21 Jun 2018 07:48:26 +0000 (09:48 +0200)
This will make possible to select the SSL backend (using
curl_global_sslset()) even when the libcurl is built using CMake

Closes #2665

CMakeLists.txt
lib/curl_config.h.cmake

index 7d7d76cd8d58aec6a71bef021998591a2458bd4d..faa9bddd967d34b1420cb6c0190a6ef250355437 100644 (file)
@@ -316,7 +316,7 @@ collect_true(enabled_ssl_options enabled_ssl_options_count
   CMAKE_USE_MBEDTLS
 )
 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()
 
 if(CMAKE_USE_WINSSL)
index a890d8ce6292430a0b7b2bc444ab25249241d731..ab0094be5dd23f6d339bf074b4314d4be96a4f52 100644 (file)
 /* to enable Windows SSL  */
 #cmakedefine USE_SCHANNEL 1
 
+/* enable multiple SSL backends */
+#cmakedefine CURL_WITH_MULTI_SSL 1
+
 /* Define to 1 if using yaSSL in OpenSSL compatibility mode. */
 #cmakedefine USE_YASSLEMUL 1