File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ ELSE(WIN32)
59
59
ENDIF (NOT GDAL_VERSION )
60
60
STRING (REGEX REPLACE "([0-9]+)\\ .([0-9]+)\\ .([0-9]+)" "\\ 1" GDAL_VERSION_MAJOR "${GDAL_VERSION} " )
61
61
STRING (REGEX REPLACE "([0-9]+)\\ .([0-9]+)\\ .([0-9]+)" "\\ 2" GDAL_VERSION_MINOR "${GDAL_VERSION} " )
62
- IF (GDAL_VERSION_MAJOR LESS 1 OR GDAL_VERSION_MINOR LESS 4 )
62
+ IF (GDAL_VERSION_MAJOR LESS 1 OR ( GDAL_VERSION EQUAL 1 AND GDAL_VERSION_MINOR LESS 4 ) )
63
63
MESSAGE (FATAL_ERROR "GDAL version is too old (${GDAL_VERSION} ). Use 1.4.0 or higher." )
64
64
ENDIF (GDAL_VERSION_MAJOR LESS 1 OR GDAL_VERSION_MINOR LESS 4 )
65
65
ENDIF (GDAL_LIBRARY )
@@ -95,7 +95,7 @@ ELSE(WIN32)
95
95
# check for gdal version
96
96
# version 1.2.5 is known NOT to be supported (missing CPL_STDCALL macro)
97
97
# According to INSTALL, 1.4.0+ is required
98
- IF (GDAL_VERSION_MAJOR LESS 1 OR GDAL_VERSION_MINOR LESS 4 )
98
+ IF (GDAL_VERSION_MAJOR LESS 1 OR ( GDAL_VERSION_MAJOR EQUAL 1 AND GDAL_VERSION_MINOR LESS 4 ) )
99
99
MESSAGE (FATAL_ERROR "GDAL version is too old (${GDAL_VERSION} ). Use 1.4.0 or higher." )
100
100
ENDIF (GDAL_VERSION_MAJOR LESS 1 OR GDAL_VERSION_MINOR LESS 4 )
101
101
You can’t perform that action at this time.
0 commit comments