mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Improve condition check
This commit is contained in:
parent
8c99b4c39c
commit
5ccaad7f80
@ -435,9 +435,9 @@ if(WITH_CORE)
|
||||
# required
|
||||
find_package(Proj REQUIRED)
|
||||
message(STATUS "Found Proj: ${PROJ_VERSION} ${PROJ_DIR}")
|
||||
if(PROJ_VERSION_MAJOR LESS 8 OR (PROJ_VERSION_MAJOR EQUAL 8 AND (PROJ_VERSION_MINOR LESS 1)))
|
||||
if(PROJ_VERSION_MAJOR VERSION_LESS "8.1")
|
||||
message(FATAL_ERROR "Cannot build QGIS using Proj older than 8.1")
|
||||
endif(PROJ_VERSION_MAJOR LESS 8 OR (PROJ_VERSION_MAJOR EQUAL 8 AND (PROJ_VERSION_MINOR LESS 1)))
|
||||
endif(PROJ_VERSION_MAJOR VERSION_LESS "8.1")
|
||||
|
||||
find_package(GEOS REQUIRED)
|
||||
message(STATUS "Found Geos: ${GEOS_VERSION} ${GEOS_DIR}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user