MantisBT - CMake
View Issue Details
0012946CMakeCMakepublic2012-02-08 13:232012-09-03 16:01
Artur Kedzierski 
Brad King 
highminoralways
closedfixed 
CMake 2.8.7 
CMake 2.8.8CMake 2.8.8 
0012946: Lack of ability to specify location of SSL CA bundle at compile time
Currently, there is no way of specifying location of SSL CA bundle at compile time. Source code has to be changed first. Addition of the following code to Utilities/cmcurl/CMakeLists.txt would fix the problem:

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(CURL_CA_BUNDLE)
1. Compile CMake with SSL support on Windows using built-in curl
2. Run CTest that submits to CDash

Step 2 will fail as it will not find SSL CA bundle to verify website's SSL certificate.
No tags attached.
patch 16b1a6e4+0001-Add-CURL_CA_BUNDLE-option-for-SSL-support-12946.patch (1,072) 2012-02-09 09:12
https://public.kitware.com/Bug/file/4211/16b1a6e4%2B0001-Add-CURL_CA_BUNDLE-option-for-SSL-support-12946.patch
Issue History
2012-02-08 13:23Artur KedzierskiNew Issue
2012-02-09 09:12Brad KingFile Added: 16b1a6e4+0001-Add-CURL_CA_BUNDLE-option-for-SSL-support-12946.patch
2012-02-09 09:12Brad KingAssigned To => Brad King
2012-02-09 09:12Brad KingStatusnew => assigned
2012-02-09 09:12Brad KingNote Added: 0028537
2012-02-09 13:57Artur KedzierskiNote Added: 0028548
2012-02-09 14:32Brad KingNote Added: 0028550
2012-02-09 14:32Brad KingStatusassigned => resolved
2012-02-09 14:32Brad KingFixed in Version => CMake 2.8.8
2012-02-09 14:32Brad KingResolutionopen => fixed
2012-04-19 10:55David ColeTarget Version => CMake 2.8.8
2012-09-03 16:01David ColeNote Added: 0030861
2012-09-03 16:01David ColeStatusresolved => closed

Notes
(0028537)
Brad King   
2012-02-09 09:12   
Thanks for the patch.

Please test 16b1a6e4+0001-Add-CURL_CA_BUNDLE-option-for-SSL-support-12946.patch
(0028548)
Artur Kedzierski   
2012-02-09 13:57   
I am not able to test the patch directly as I am not allowed to copy files to/from internal network at work. That's where my development tools are. I would try it at home but I don't have any Windows machines and the issue affects Windows (on Linux, we recompile CMake with system Curl to get SSL support).

However, I tried the new lines of code in the location that your patch specifies and everything works. I am looking forward to having this feature in the future versions of CMake.
(0028550)
Brad King   
2012-02-09 14:32   
Applied, thanks!

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ed14435b [^]
(0030861)
David Cole   
2012-09-03 16:01   
Closing resolved issues that have not been updated in more than 4 months.