[CMake] FindGnutls.cmake troubles with Windows
Philip Lowman
philip at yhbt.com
Tue Sep 29 22:59:40 EDT 2009
On Tue, Sep 29, 2009 at 4:43 PM, Dixon, Shane <Shane.Dixon at atmel.com> wrote:
> 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):
>
>
>
> FIND_PATH(GNUTLS_INCLUDE_DIR gnutls/gnutls.h
>
> HINTS
>
> ${PC_GNUTLS_INCLUDEDIR}
>
> ${PC_GNUTLS_INCLUDE_DIRS}
>
> "C:/Program Files/*/include" )
>
What you typed above isn't supported by find_path (doesn't support
wildcards).
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 C:/Program Files/Gnutls-2.8.x where x is the version
you are using.
The GnuTLS installer does set a registry key which normally could be used to
help searching for this library...
\\HKLM\SOFTWARE\GnuTLS-2.8.4\Install_Dir
...but it is also version encumbered.
--
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090929/070591d5/attachment.htm>
More information about the CMake
mailing list