From c50f03275481e3e1434b5c3153d8668dde6cefd8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 3 Nov 2014 13:43:01 -0500 Subject: curl: Restore CURL_CA_BUNDLE option Restore the option added by commit v2.8.8~200^2 (Add CURL_CA_BUNDLE option for SSL support, 2012-02-09). --- Utilities/cmcurl/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index ba2ef13..02acbd9 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -437,6 +437,13 @@ if(CMAKE_USE_OPENSSL) check_include_file_concat("openssl/ssl.h" HAVE_OPENSSL_SSL_H) check_include_file_concat("openssl/x509.h" HAVE_OPENSSL_X509_H) check_include_file_concat("openssl/rand.h" HAVE_OPENSSL_RAND_H) + + # Optionally build with a specific CA cert bundle. + set(CURL_CA_BUNDLE "" CACHE FILEPATH "Path to SSL CA Certificate Bundle") + mark_as_advanced(CURL_CA_BUNDLE) + if(CURL_CA_BUNDLE) + add_definitions(-DCURL_CA_BUNDLE="${CURL_CA_BUNDLE}") + endif() endif(OPENSSL_FOUND) endif(CMAKE_USE_OPENSSL) -- cgit v0.12