View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009685 | CMake | Modules | public | 2009-10-08 16:39 | 2010-09-01 00:13 | ||||
Reporter | Shane Dixon | ||||||||
Assigned To | Philip Lowman | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-8 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0009685: FindGnuTLS.cmake returns wront library path | ||||||||
Description | When searching for GnuTLS on windows, the path gets returned wrong for the headers: -- GNUTLS_LIBRARY C:/Program Files/GnuTLS-2.9.7/lib/libgnutls.lib -- GNUTLS_INCLUDE_DIR C:/Program Files/GnuTLS-2.9.7/include/gnutls It looks for gnutls.h but if you look in gnutls.h, all the other includes are framed as "gnutls/*.h". The correct include path should be "C:/Program Files/GnuTLS-2.9.7/include". I fixed this by modifying the find_path call to: FIND_PATH(GNUTLS_INCLUDE_DIR gnutls/gnutls.h HINTS ${PC_GNUTLS_INCLUDEDIR} ${PC_GNUTLS_INCLUDE_DIRS} ) This finds the right path so now in the source you can include using "gnutls/gnutls.h" and it works. | ||||||||
Additional Information | Attached is my modified version that works correctly. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | FindGnuTLS.cmake [^] (2,333 bytes) 2009-10-08 16:39 | ||||||||
Relationships | |
Relationships |
Notes | |
(0018048) Shane Dixon (reporter) 2009-10-08 16:41 |
Oops. title should read that it sets the wrong Include directory, not library path. Although the library path does have issues to if using MSVC. One has to run C:\Program Files\GnuTLS-2.9.7\bin>lib /def:libgnutls-26.def /nologo and move the resulting file to C:\Program Files\GnuTLS-2.9.7\lib and rename it from libgnutls-26.lib to libgnutls.lib for that to work. That's only when using MSVC (per the gnutls instructions). |
(0018049) Philip Lowman (developer) 2009-10-08 22:52 |
Fixed in CVS, thanks for reporting the issue and the patch. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-10-08 16:39 | Shane Dixon | New Issue | |
2009-10-08 16:39 | Shane Dixon | File Added: FindGnuTLS.cmake | |
2009-10-08 16:41 | Shane Dixon | Note Added: 0018048 | |
2009-10-08 22:08 | Philip Lowman | Status | new => assigned |
2009-10-08 22:08 | Philip Lowman | Assigned To | => Philip Lowman |
2009-10-08 22:52 | Philip Lowman | Note Added: 0018049 | |
2009-10-08 22:52 | Philip Lowman | Status | assigned => resolved |
2009-10-08 22:52 | Philip Lowman | Resolution | open => fixed |
2010-09-01 00:13 | Philip Lowman | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |