Skip to content
Snippets Groups Projects
Commit 0de3b210 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

FindGDAL: also allow GDAL_ROOT to be a variable

parent 0f17fa78
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ GDAL installation prefix.
find_path(GDAL_INCLUDE_DIR gdal.h
HINTS
${GDAL_ROOT}
ENV GDAL_DIR
ENV GDAL_ROOT
PATH_SUFFIXES
......@@ -77,6 +78,7 @@ if(UNIX)
# libgdal.so...
find_program(GDAL_CONFIG gdal-config
HINTS
${GDAL_ROOT}
ENV GDAL_DIR
ENV GDAL_ROOT
PATH_SUFFIXES bin
......@@ -134,6 +136,7 @@ endif()
find_library(GDAL_LIBRARY
NAMES ${_gdal_lib} gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
HINTS
${GDAL_ROOT}
ENV GDAL_DIR
ENV GDAL_ROOT
${_gdal_libpath}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment