From 9fab88eb4eea05b29d006544f3cda7b8d0cae574 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 29 Jan 2025 11:00:08 +1000 Subject: [PATCH] Require PROJ >= 8.2 --- CMakeLists.txt | 4 ++++ INSTALL.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e283e40d65c..9b50255bd55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -435,6 +435,10 @@ 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 2))) + message(FATAL_ERROR "Cannot build QGIS using Proj older than 8.2") + endif(PROJ_VERSION_MAJOR LESS 8 OR (PROJ_VERSION_MAJOR EQUAL 8 AND (PROJ_VERSION_MINOR LESS 2))) + find_package(GEOS REQUIRED) message(STATUS "Found Geos: ${GEOS_VERSION} ${GEOS_DIR}") find_package(GDAL REQUIRED) diff --git a/INSTALL.md b/INSTALL.md index cb724361d31..b710e4feba0 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -106,7 +106,7 @@ Required build tools: Required build dependencies: * Qt >= 5.15.2 -* Proj >= 7.2.0 +* Proj >= 8.2.0 * GEOS >= 3.9 * Sqlite3 >= 3.0.0 * SpatiaLite >= 4.2.0