<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff><SPAN class=724333714-08102009>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Philip,<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Okay, that fixed half
of it.<SPAN style="mso-spacerun: yes"> </SPAN>I had to move the .lib from
the bin folder to the lib folder.<SPAN style="mso-spacerun: yes"> </SPAN>I
also had to rename it because it was libgnutls-26.lib and the FindGnuTLS looks
for libgnutls.lib.<SPAN style="mso-spacerun: yes"> </SPAN>So
FindGnuTLS.cmake finds the two paths automatically<SPAN
class=724333714-08102009>, but the header path is wrong. All the GnuTLS
provided headers use the format "gnutls/gnutls.h". Everything is prefixed
with "gnutls", but what I get from CMake is:</SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009></SPAN></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009>--
GNUTLS_LIBRARY
C:/Program Files/GnuTLS-2.9.7/lib/libgnutls.lib<BR>--
GNUTLS_INCLUDE_DIR
C:/Program Files/GnuTLS-2.9.7/include/gnutls</SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009></SPAN></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009>Is this an error that it looks in the wrong
directory? It would have to be set to "C:/Program
Files/GnuTLS-2.9.7/include/" to work correctly. I can fix my source to
just include "gnutls.h", but the gnutls.h has several references to files in
"gnutls/*.h". Is this a bug? I had to modify the FindGnuTLS.cmake
file to fix this:</SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009></SPAN></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009>FIND_PATH(GNUTLS_INCLUDE_DIR
gnutls/gnutls.h<BR> HINTS<BR>
${PC_GNUTLS_INCLUDEDIR}<BR>
${PC_GNUTLS_INCLUDE_DIRS}<BR> #PATH_SUFFIXES gnutls<BR>
)</SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009></SPAN></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009>Should this be modified in the distributed
FindGnuTLS.cmake file?</SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009></SPAN></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009>--</SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=724333714-08102009>Shane</SPAN></SPAN></P></SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> cmake-bounces@cmake.org
[mailto:cmake-bounces@cmake.org] <B>On Behalf Of </B>Philip
Lowman<BR><B>Sent:</B> Wednesday, October 07, 2009 7:40 PM<BR><B>To:</B> Dixon,
Shane<BR><B>Cc:</B> cmake@cmake.org<BR><B>Subject:</B> Re: [CMake] FindGnuTLS in
2.8rc2<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=gmail_quote>On Wed, Oct 7, 2009 at 6:38 PM, Dixon, Shane <SPAN
dir=ltr><<A
href="mailto:Shane.Dixon@atmel.com">Shane.Dixon@atmel.com</A>></SPAN> wrote:
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV lang=EN-US vlink="purple" link="blue">
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">One note is that I’m using the
MSVC compiler not gnu so I had to run this in the GnuTLS
folder:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">C:\Program
Files\GnuTLS-2.9.7\bin>lib /def:libgnutls-26.def /nologo</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Per the instructions in
GnuTLS. It generates a MSVC compatible .lib in the /bin folder. Is
that going to hose things having it in the bin
folder?</SPAN></FONT></P></DIV></DIV></BLOCKQUOTE>
<DIV><BR>Yes, it needs to be put in the lib/ folder for CMAKE_PREFIX_PATH to
help find it. You could send a note/patch to the GnuTLS people to fix
their documentation to have the user move the import library (.lib file) to
"../lib" when done, or just run the lib tool from the lib directory.<BR><BR>The
GnuTLS installer does put all of the MinGW libraries in lib/ where they belong
so no problems there...<BR><BR>Also, in case you don't know, you can always show
"advanced variables" in the cache editor and set the location of GNUTLS_LIBRARY
manually, should CMake fail to auto-detect it.<BR><BR></DIV></DIV>-- <BR>Philip
Lowman<BR></BODY></HTML>