From: Razvan Cojocaru Date: Mon, 11 Jan 2021 11:00:36 +0000 (+0200) Subject: cmake: expose CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG X-Git-Tag: curl-7_75_0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13fe0b6ade262e6ae5e595478b5bfcded86406ea;p=thirdparty%2Fcurl.git cmake: expose CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG This does for cmake builds what --disable-openssl-auto-load-config does for autoconf builds. Closes https://github.com/curl/curl/pull/6435 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 58f4bfb7c7..2384cd49eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -337,6 +337,7 @@ if(WIN32 OR CMAKE_USE_SECTRANSP OR CMAKE_USE_SCHANNEL OR CMAKE_USE_MBEDTLS OR CM set(openssl_default OFF) endif() option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ${openssl_default}) +option(CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG "Disable automatic loading of OpenSSL configuration" OFF) count_true(enabled_ssl_options_count CMAKE_USE_SCHANNEL diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 082d76b371..d951ae9503 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -1002,6 +1002,10 @@ ${SIZEOF_TIME_T_CODE} /* if OpenSSL is in use */ #cmakedefine USE_OPENSSL 1 +/* Define to 1 if you don't want the OpenSSL configuration to be loaded + automatically */ +#cmakedefine CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1 + /* to enable NGHTTP2 */ #cmakedefine USE_NGHTTP2 1