Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added some extremely clever logic so gdal headers on Gutsy Gibbon are…
… located properly

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7161 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 28, 2007
1 parent e7d833f commit e69036b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmake/FindGDAL.cmake
Expand Up @@ -37,7 +37,14 @@ ELSE(WIN32)
EXEC_PROGRAM(${GDAL_CONFIG}
ARGS --prefix
OUTPUT_VARIABLE GDAL_PREFIX)
SET(GDAL_INCLUDE_DIR ${GDAL_PREFIX}/include CACHE STRING INTERNAL)
#SET(GDAL_INCLUDE_DIR ${GDAL_PREFIX}/include CACHE STRING INTERNAL)
FIND_PATH(GDAL_INCLUDE_DIR
gdal.h
${GDAL_PREFIX}/include/gdal
${GDAL_PREFIX}/include
/usr/local/include
/usr/include
)

## extract link dirs for rpath
EXEC_PROGRAM(${GDAL_CONFIG}
Expand Down

0 comments on commit e69036b

Please sign in to comment.