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 ====================================================================== -- 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