[Qgis-developer] PATCH: check gdal version at cmake time

strk strk at keybit.net
Wed Nov 19 04:23:26 EST 2008


On Wed, Nov 19, 2008 at 10:00:12AM +0100, strk wrote:
> The attached macro checks that GDAL is at least 
> version 1.4.0 or refuses to complete configuration
> successfully.

> +      IF (GDAL_VERSION_MAJOR LESS 1 OR GDAL_VERSION_MINOR LESS 4)
> +          MESSAGE (FATAL_ERROR "GDAL version is too old (${GDAL_VERSION}). Use 1.4.0 or higher.")
> +      ENDIF (GDAL_VERSION_MAJOR LESS 1 OR GDAL_VERSION_MINOR LESS 3)

Patch for the patch :)
the ENDIF should end with 'LESS 4' or cmake complains...

--strk;


More information about the Qgis-developer mailing list