[CMake] FindGDAL.cmake

Laurent Duchesne laurent.duchesne at calculquebec.ca
Mon Jan 19 12:58:47 EST 2015


Dear all,

There is a problem with the FindGDAL.cmake module. It will use the
gdal-config binary to find the library name & (lib) path, but not for the
include path.

Attached is a patch that will use gdal-config --cflags to find the correct
location for the gdal.h file.

I just moved the find_path section after the gdal-config one, and added
${_gdal_cpath} in the HINTS section.

Regards,

-- 
Laurent Duchesne
Conseiller en Calcul Haute Performance
Calcul Québec, Université Laval
418-656-2131 #5811
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150119/fc345c1f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindGDAL-gdal-config-cflags.patch
Type: application/octet-stream
Size: 1634 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150119/fc345c1f/attachment-0001.obj>


More information about the CMake mailing list