<div class="gmail_quote">On Tue, Sep 29, 2009 at 4:43 PM, Dixon, Shane <span dir="ltr"><<a href="mailto:Shane.Dixon@atmel.com" target="_blank">Shane.Dixon@atmel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">I’m having some trouble getting FindGnutls.cmake
working correctly. As it currently stands, I run cmake twice and it works
correctly, but it never picks up the gnutls.h on the first scan. Here’s
the code in question (the entire FindGnutls.cmake is at the end of this email):</span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p><p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">FIND_PATH(GNUTLS_INCLUDE_DIR gnutls/gnutls.h</span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> HINTS</span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> ${PC_GNUTLS_INCLUDEDIR}</span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> ${PC_GNUTLS_INCLUDE_DIRS}</span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> "C:/Program Files/*/include" )</span></font><br></p></div></div></blockquote><div>What you typed above isn't supported by find_path (doesn't support wildcards).<br>
<br>If you
want it to work automatically your best option at the moment is probably to set (as
an environment variable or a CMake variable) CMAKE_PREFIX_PATH to <font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">C:/Program Files/Gnutls-2.8.x where x is the version you are using.</span></font><br>
<br>The GnuTLS installer does set a registry key which normally could be used to help searching for this library...<br>\\HKLM\SOFTWARE\GnuTLS-2.8.4\Install_Dir<br>...but it is also version encumbered. <br clear="all"></div>
</div><br>-- <br>Philip Lowman<br>