summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-12 18:29:54 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-12 18:52:46 (GMT)
commitba8c6632194256a6a3370713d8e0423ad516361a (patch)
tree3dc15964e6934d5e79199437335548651f97499c /Utilities/cmcurl
parenta829f09bdd5cf28c59eeebd39d1652be2bd23283 (diff)
downloadCMake-ba8c6632194256a6a3370713d8e0423ad516361a.zip
CMake-ba8c6632194256a6a3370713d8e0423ad516361a.tar.gz
CMake-ba8c6632194256a6a3370713d8e0423ad516361a.tar.bz2
curl: Use Windows SSL/TLS native implementation
On Windows, when CMAKE_USE_OPENSSL is OFF, use the OS implementation. This will allow the OS-configured CA list to be trusted automatically.
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index eaf276b..1092e48 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -460,7 +460,11 @@ if(CMAKE_USE_OPENSSL)
add_definitions(-DCURL_CA_BUNDLE="${CURL_CA_BUNDLE}")
endif()
endif(OPENSSL_FOUND)
-endif(CMAKE_USE_OPENSSL)
+elseif(WIN32)
+ # Use Windows SSL/TLS native implementation.
+ add_definitions(-DUSE_SCHANNEL)
+ set(USE_WINDOWS_SSPI 1)
+endif()
#libSSH2
option(CMAKE_USE_LIBSSH2 "Use libSSH2" ON)