Commit 1b277445 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

FindGDAL: add support for skipping gdal-config

This can be confusing if there are autotools and CMake-built GDAL builds
within the same environment as the autotools variant will always be
parent 1621cb3e
......@@ -45,6 +45,13 @@ Hints
Set ``GDAL_DIR`` or ``GDAL_ROOT`` in the environment to specify the
GDAL installation prefix.
The following variables may be set to modify the search strategy:
If set, ``gdal-config`` will not be used. This can be useful if there are
GDAL libraries built with autotools (which provide the tool) and CMake (which
do not) in the same environment.
# $GDALDIR is an environment variable that would
......@@ -75,7 +82,7 @@ find_path(GDAL_INCLUDE_DIR gdal.h
# Use gdal-config to obtain the library version (this should hopefully
# allow us to -lgdal1.x.y where x.y are correct version)
# For some reason, libgdal development packages do not contain
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment