FindGDAL¶
Find Geospatial Data Abstraction Library (GDAL).
IMPORTED Targets¶
Added in version 3.14.
This module defines IMPORTED target GDAL::GDAL
if GDAL has been found.
Result Variables¶
This module will set the following variables in your project:
GDAL_FOUNDTrue if GDAL is found.
GDAL_INCLUDE_DIRSInclude directories for GDAL headers.
GDAL_LIBRARIESLibraries to link to GDAL.
GDAL_VERSIONAdded in version 3.14: The version of GDAL found.
Cache variables¶
The following cache variables may also be set:
GDAL_LIBRARYThe libgdal library file.
GDAL_INCLUDE_DIRThe directory containing
gdal.h.
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:
FindGDAL_SKIP_GDAL_CONFIGIf set,
gdal-configwill 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.GDAL_ADDITIONAL_LIBRARY_VERSIONSExtra versions of library names to search for.