diff options
author | Brad King <brad.king@kitware.com> | 2014-11-03 18:43:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-10 15:13:38 (GMT) |
commit | c50f03275481e3e1434b5c3153d8668dde6cefd8 (patch) | |
tree | d41760d64e01c0b6992a745fa795096205ff5f3b /Utilities | |
parent | 681693c99380467de6db0954e37903b527225886 (diff) | |
download | CMake-c50f03275481e3e1434b5c3153d8668dde6cefd8.zip CMake-c50f03275481e3e1434b5c3153d8668dde6cefd8.tar.gz CMake-c50f03275481e3e1434b5c3153d8668dde6cefd8.tar.bz2 |
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).
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmcurl/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
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) |