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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers