[cmake-developers] [CMake 0015887]: FindOpenssl can't find self built openssl but prefers slproweb openssl
Mantis Bug Tracker
mantis at public.kitware.com
Fri Dec 18 19:44:04 EST 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15887
======================================================================
Reported By: Patrick Spendrin
Assigned To:
======================================================================
Project: CMake
Issue ID: 15887
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-12-18 19:44 EST
Last Modified: 2015-12-18 19:44 EST
======================================================================
Summary: FindOpenssl can't find self built openssl but
prefers slproweb openssl
Description:
When having a pre-built package of openssl installed from slproweb.com and you
try to find a self-built openssl package in a different location, the slproweb
stuff is always preferred.
Steps to Reproduce:
1) Install slproweb openssl development package (including import libraries and
headers).
2a) Build openssl yourself
or
2b) copy over the include directory and the lib directory from the slproweb
location and delete the VC and the MinGW folder inside the lib dir.
3) run find_package(OpenSSL)
-> you will not be able to find the new location, which contains both
ssleay32.lib and libeay32.lib
Additional Information:
The problem occurs because ssleay32MD.lib/ssleay32MT.lib and
libeay32MD.lib/libeay32MT.lib are searched before trying to find ssleay32.lib
and libeay32.lib. Since the registry paths are by default in the HINTS section,
these will be used first.
Attached patch fixes this by providing an option OPENSSL_MSVC_NO_RT_MODE which
disables searching for MD/MT libraries.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-12-18 19:44 Patrick SpendrinNew Issue
2015-12-18 19:44 Patrick SpendrinFile Added:
0001-Make-it-possible-to-ignore-slproweb-OpenSSL.patch
======================================================================
More information about the cmake-developers
mailing list