summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-03-23 14:05:18 +0100
committerMartin Michlmayr <tbm@cyrius.com>2023-03-24 14:29:57 +0800
commit956d8ea37247b34a5300c9d55abc7c75324fff33 (patch)
tree3587bde3b79e82cc550fbf66d335e735a7b1eaf1 /CMakeLists.txt
parent49cf3323ae2079b7ce1be101dc43780ce8e4296e (diff)
downloadfork-ledger-956d8ea37247b34a5300c9d55abc7c75324fff33.tar.gz
fork-ledger-956d8ea37247b34a5300c9d55abc7c75324fff33.tar.bz2
fork-ledger-956d8ea37247b34a5300c9d55abc7c75324fff33.zip
Bump required CMake version to 3.16.2
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ac58cda..eb13f777 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,6 @@
-cmake_minimum_required(VERSION 3.0)
+set(Required_CMake_Version 3.16.2)
+
+cmake_minimum_required(VERSION ${Required_CMake_Version})
PROJECT(ledger)
@@ -10,12 +12,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(Ledger_TEST_TIMEZONE "America/Chicago")
-if ((${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.7.0") AND (${CMAKE_VERSION} VERSION_LESS "3.16.0"))
- # use backported module from 3.15 (introduced 3.12) to support older versions of cmake.
- # this only works with cmake 3.7 or higher.
- list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/python-backport")
-endif()
-
enable_testing()
add_definitions(