gnucash stable: Bump minimum cmake version to 3.16
Geert Janssens
gjanssens at code.gnucash.org
Fri Aug 18 12:57:06 EDT 2023
Updated via https://github.com/Gnucash/gnucash/commit/6c99523a (commit)
from https://github.com/Gnucash/gnucash/commit/51e932c9 (commit)
commit 6c99523a70068653b9c73fd3946794987e011b6e
Author: Geert Janssens <geert at kobaltwit.be>
Date: Fri Aug 18 18:46:38 2023 +0200
Bump minimum cmake version to 3.16
This allows to drop some conditionals for older versions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index edf26cd620..7c926279d8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,9 +1,6 @@
# CMakeLists.txt for GnuCash
-cmake_minimum_required (VERSION 3.10)
-if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.14.0)
- cmake_policy(SET CMP0082 NEW)
-endif()
+cmake_minimum_required (VERSION 3.16)
project (gnucash
VERSION 5.3
@@ -497,24 +494,9 @@ endif()
if (WITH_PYTHON)
set (PYTHON_MIN_VERSION 3.6.0)
- if (CMAKE_VERSION GREATER_EQUAL 3.12.0)
- find_package (Python3 ${PYTHON_MIN_VERSION} COMPONENTS Interpreter Development)
- if (NOT Python3_FOUND)
- message(SEND_ERROR "Python support enabled, but Python3 interpreter and/or libaries not found.")
- endif()
- else()
- find_package(PythonInterp ${PYTHON_MIN_VERSION})
- if (NOT PYTHONINTERP_FOUND)
- message(SEND_ERROR "Python support enabled, but Python interpreter not found.")
- endif()
-
- find_package(PythonLibs ${PYTHON_MIN_VERSION})
- if (NOT PYTHONLIBS_FOUND)
- message(SEND_ERROR "Python support enabled, but Python libraries not found.")
- endif()
- set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE})
- set(Python3_LIBRARIES ${PYTHON_LIBRARIES})
- set(Python3_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
+ find_package (Python3 ${PYTHON_MIN_VERSION} COMPONENTS Interpreter Development)
+ if (NOT Python3_FOUND)
+ message(SEND_ERROR "Python support enabled, but Python3 interpreter and/or libaries not found.")
endif()
# Determine where to install the python libraries.
Summary of changes:
CMakeLists.txt | 26 ++++----------------------
1 file changed, 4 insertions(+), 22 deletions(-)
More information about the gnucash-changes
mailing list