On Tue, Sep 29, 2009 at 4:43 PM, Dixon, Shane <[email protected]> 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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to