<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 14, 2013 at 8:06 PM, Josef &#39;Jeff&#39; Sipek <span dir="ltr">&lt;<a href="mailto:jeffpc@josefsipek.net" target="_blank">jeffpc@josefsipek.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you have a (linux or solaris) system with openssl installed in /usr and a<br>
second copy installed elsewhere (e.g., /opt) and you want a cmake project to<br>
find the elsewhere version, no matter what you try it finds the system copy.<br>
(In other words, OPENSSL_ROOT_DIR has no effect.)  Are we missing something or<br>
is this a bug in FindOpenSSL?  We&#39;ve tested cmake 2.8.5, 2.8.8, and 2.8.11<br>
without any luck.<br></blockquote><div><br></div><div>Yes this is a bug in the module, on Windows it sets a variable called _OPENSSL_HINTS_AND_PATHS, but on *nix it only sets _OPENSSL_HINTS based on the OPENSSL_ROOT_DIR variable. The code further down that looks for headers and libs only uses _OPENSSL_HINTS_AND_PATHS with the HINTS keyword and nothing else in the file uses _OPENSSL_HINTS.</div>
<div><br></div><div>Andreas </div></div><br></div></div>