View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007445CMakeModulespublic2008-08-02 04:012009-02-23 22:39
ReporterAntonio Valentino 
Assigned ToPhilip Lowman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in VersionCMake-2-6 
Summary0007445: Wrong link flags for GDAL on ubuntu/debian
Descriptioncmake seems to fail in setting up link flags for the GDAL library in ubuntu/debian.
In this systems the GDAL shared library is named libgdalX.Y.Z.so but cmake always try to link against libgdal.so ---> -lgdal.
In my opinion this is due to the facts that FindGDAL.cmake doesn't use gdal-config to set up link flags.
The implementation of FindGDAL.cmake provided by the qgis project (https://svn.osgeo.org/qgis/trunk/qgis/cmake/FindGDAL.cmake [^]) seems to fix the problem.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0014745)
Philip Lowman (developer)
2009-01-31 01:52

Thanks for the suggestion, I've committed code which uses the output from gdal-config. I've also added several guesses as per the libGDAL version should this code fail for some reason (gdal1.5.0 for example).

Committer: Philip Lowman <philip@yhbt.com>
/cvsroot/CMake/CMake/Modules/FindGDAL.cmake,v <-- FindGDAL.cmake
new revision: 1.4; previous revision: 1.3
(0015302)
Philip Lowman (developer)
2009-02-23 22:39

Fix available in 2.6.3

 Issue History
Date Modified Username Field Change
2008-08-02 04:01 Antonio Valentino New Issue
2008-08-19 14:14 Bill Hoffman Status new => assigned
2008-08-19 14:14 Bill Hoffman Assigned To => Eric Wing
2009-01-23 00:56 Philip Lowman Category CMake => Modules
2009-01-31 01:52 Philip Lowman Note Added: 0014745
2009-01-31 01:52 Philip Lowman Assigned To Eric Wing => Philip Lowman
2009-01-31 01:52 Philip Lowman Status assigned => resolved
2009-01-31 01:52 Philip Lowman Resolution open => fixed
2009-02-23 22:39 Philip Lowman Note Added: 0015302
2009-02-23 22:39 Philip Lowman Status resolved => closed
2009-02-23 22:39 Philip Lowman Fixed in Version => CMake-2-6


Copyright © 2000 - 2018 MantisBT Team