Fix check

This commit is contained in:
Nyall Dawson 2025-01-29 13:37:31 +10:00
parent 6257874a40
commit ed6b7b9c17

View File

@ -435,9 +435,9 @@ if(WITH_CORE)
# required
find_package(Proj REQUIRED)
message(STATUS "Found Proj: ${PROJ_VERSION} ${PROJ_DIR}")
if(PROJ_VERSION_MAJOR VERSION_LESS "8.1")
if(PROJ_VERSION VERSION_LESS "8.1")
message(FATAL_ERROR "Cannot build QGIS using Proj older than 8.1")
endif(PROJ_VERSION_MAJOR VERSION_LESS "8.1")
endif(PROJ_VERSION VERSION_LESS "8.1")
find_package(GEOS REQUIRED)
message(STATUS "Found Geos: ${GEOS_VERSION} ${GEOS_DIR}")