<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1430426019624_19704">I'm trying to convert a project over to using CMake. We have a series of dependency libraries that we custom compile and link against.</div><div id="yui_3_16_0_1_1430426019624_19705">For a number of them there is no issue since CMake either has no module for them or there is nothing to link with.</div><div id="yui_3_16_0_1_1430426019624_19791">However, I am having trouble with a few of them.</div><div id="yui_3_16_0_1_1430426019624_20108"><br></div><div id="yui_3_16_0_1_1430426019624_20171">This is all with CMake 2.8.9 as that is what is available under Debian Wheezy (my build system). I'm not opposed to using a newer version (we already build a number of things ourselves); but I want to ensure that things would be fixed before doing so if that was truly the path to resolving the issues.<br></div><div id="yui_3_16_0_1_1430426019624_20170"><br></div><div id="yui_3_16_0_1_1430426019624_20172" dir="ltr">1. OpenSSL:</div><div id="yui_3_16_0_1_1430426019624_20173" dir="ltr"><br></div><div id="yui_3_16_0_1_1430426019624_20174" dir="ltr">SET ( ENV{OPENSSL_ROOT_DIR} /path/to/my/libraries )</div><div id="yui_3_16_0_1_1430426019624_20175" dir="ltr">FIND_PACKAGE(OpenSSL REQUIRED)</div><div id="yui_3_16_0_1_1430426019624_20169" dir="ltr"><br></div><div id="yui_3_16_0_1_1430426019624_20168" dir="ltr">This find OpenSSL, but not the one under /path/to/my/libraries. Are the bug fixes related to honoring OPENSSL_ROOT_DIR after Cmake 2.8.9?</div><div id="yui_3_16_0_1_1430426019624_20176" dir="ltr"><br></div><div id="yui_3_16_0_1_1430426019624_20177" dir="ltr">2. Curl</div><div id="yui_3_16_0_1_1430426019624_20178" dir="ltr"><br></div><div id="yui_3_16_0_1_1430426019624_20179" dir="ltr">I've tried a number of methods. Our version of Curl is also built against our version of OpenSSL; and they are installed under the same path.</div><div id="yui_3_16_0_1_1430426019624_20180" dir="ltr">Further we have tended to needing to use PkgConfig to get it to work correctly in our previous build system.</div><div id="yui_3_16_0_1_1430426019624_20181" dir="ltr"><br></div><div id="yui_3_16_0_1_1430426019624_20182" dir="ltr">I have tried a number of things, however, I can't seem to get it to reliably find Curl. (I had it, then I cleaned up the environment and it won't find it again.)</div><div id="yui_3_16_0_1_1430426019624_20183" dir="ltr">My biggest challenge here is that there is no equivalent of OPENSSL_ROOT_DIR or any other kinds of hints.</div><div id="yui_3_16_0_1_1430426019624_20184" dir="ltr">I've tried using FindPackage(CURL...), FindPackage(PkgConfig,...)/PKG_CHECK_MODULES(CURL..).</div><div id="yui_3_16_0_1_1430426019624_20185" dir="ltr">A co-worker suggested using CMAKE_FIND_ROOT_PATH, but that hasn't helped either.<br></div><div id="yui_3_16_0_1_1430426019624_20186"><br></div><div id="yui_3_16_0_1_1430426019624_20187">Any suggestions would be welcome. I'd really like to move us from the old system to cmake and unify our platforms on a single build system generator so we don't have to maintain two build environments.</div><div id="yui_3_16_0_1_1430426019624_20208"><br>TIA,</div><div id="yui_3_16_0_1_1430426019624_20210"><br></div><div id="yui_3_16_0_1_1430426019624_20211">Ben<br></div></div></body></html>