[cmake-developers] [CMake 0015765]: FindOpenSSL.cmake does not honor OPENSSL_ROOT_DIR

Mantis Bug Tracker mantis at public.kitware.com
Sat Oct 3 11:40:32 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15765 
====================================================================== 
Reported By:                Wayne Stambaugh
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15765
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-10-03 11:40 EDT
Last Modified:              2015-10-03 11:40 EDT
====================================================================== 
Summary:                    FindOpenSSL.cmake does not honor OPENSSL_ROOT_DIR
Description: 
This has been broken for as long as the KiCad project has been using OpenSSL. 
When you define OPENSSL_ROOT_DIR to point to the mingw builds of OpenSSL, it
always returns the libraries installed in the windows system path (if installed)
which results in link errors.  I'm hoping you will consider applying the
attached patch or at least fixing the current behavior on mingw.  This patch
only honors the OPENSSL_ROOT_DIR.  It does not find the openssl version
installed in /mingw without configuration.  That is yet another issue.

Steps to Reproduce: 
Create a simple cmakelist.txt with findopenssl.  Open the msys shell.  Run
`cmake -G "MSYS Makefiles" -DOPENSSL_ROOT_PATH=/path_to_mingw
path_to_cmake_file`.  If FindOpenSSL is successful, the output on my system
shows:

-- Found OpenSSL: C:/Program Files (x86)/Intel/iCLS
Client/ssleay32.dll;C:/Program Files (x86)/Intel/iCLS Client/libeay32.dll (found
version "1.0.2d")

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-10-03 11:40 Wayne StambaughNew Issue                                    
2015-10-03 11:40 Wayne StambaughFile Added:
find-openssl-cmake-3.3-mingw-fix.patch                    
======================================================================



More information about the cmake-developers mailing list