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

Attachment: FindGDAL-gdal-config-cflags.patch
Description: Binary data

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to