MantisBT - CMake
View Issue Details
0014764CMakeCMakepublic2014-02-18 13:512014-10-06 10:32
Ho Cheung 
Brad King 
normalminoralways
closedfixed 
Unix/Linux
CMake 2.8.12.2 
 
0014764: FindOpenSSL.cmake PkgConfig results takes priority over OPENSSL_ROOT_DIR variable
If PkgConfig is installed on a Unix-like OS (mine is installed via Macports), the FindOpenSSL.cmake scripts will use it instead of using the OPENSSL_ROOT_DIR variable.

The solution seems to be to move the OPENSSL_ROOT_HINTS_AND_PATHS variable in front of the _OPENSSL_INCLUDEDIR/_OPENSSL_LIBDIR in the appropriate hinting locations.

Patch is attached.
No tags attached.
diff FindOpenSSLPkgConfigFix.diff (1,295) 2014-02-18 13:51
https://public.kitware.com/Bug/file/5077/FindOpenSSLPkgConfigFix.diff
Issue History
2014-02-18 13:51Ho CheungNew Issue
2014-02-18 13:51Ho CheungFile Added: FindOpenSSLPkgConfigFix.diff
2014-02-18 15:08Brad KingNote Added: 0035142
2014-02-18 15:08Brad KingAssigned To => Brad King
2014-02-18 15:08Brad KingStatusnew => resolved
2014-02-18 15:08Brad KingResolutionopen => fixed
2014-10-06 10:32Robert MaynardNote Added: 0036910
2014-10-06 10:32Robert MaynardStatusresolved => closed

Notes
(0035142)
Brad King   
2014-02-18 15:08   
Applied, thanks:

 FindOpenSSL: Prefer OPENSSL_ROOT_DIR first
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e346c47a [^]
(0036910)
Robert Maynard   
2014-10-06 10:32   
Closing resolved issues that have not been updated in more than 4 months.