<html><head></head><body><div>Andrew,</div><div><br></div><div>FindOpenSSL provides an "OPENSSL_ROOT_DIR" variable which allows you to specify the root directory of your installation (assuming a traditional layout within that directory.) Hopefully this will do what you need.</div><div><br></div><div>Good luck!</div><div><br></div><div>Kyle</div><div><br></div><div>On Fri, 2019-02-01 at 16:18 -0500, Andrew Bell wrote:</div><blockquote type="cite"><div dir="ltr">I have a system-provided SSL and I have a newer one that I have installed via a packaging system.  In my build system I have: find_package(OPENSSL 1.1) .  This properly finds the version 1.1 header files for openSSL, but it finds the incompatible system libraries, which are older than version 1.1.  A look at FindOpenSSL.cmake makes it seem as if the version is used when finding the header files, but not the libraries.  Other than overriding cache entries, is there a way to fix the FindOpenSSL.cmake that would solve the problem?  Other suggestions?<div><br><pre>-- 

Powered by <a href="http://www.kitware.com">www.kitware.com</a>

Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Follow this link to subscribe/unsubscribe:
<a href="https://cmake.org/mailman/listinfo/cmake">https://cmake.org/mailman/listinfo/cmake</a>
</pre></div></div></blockquote></body></html>