mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Bump minimum cmake version to 3.16
This allows to drop some conditionals for older versions
This commit is contained in:
parent
51e932c99a
commit
6c99523a70
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user