summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 11:17:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-17 21:23:04 +0900
commit3d0a34c8c2012c8e51124ce9d10e56bd70ab3d7b (patch)
tree37f9ec57e5b4227e8b905dfa6e05fbea7e58ad84
parentbfd8a62ca159072eb1a157d5f5ba06c05a1102e7 (diff)
downloadtde-i18n-3d0a34c8c2012c8e51124ce9d10e56bd70ab3d7b.tar.gz
tde-i18n-3d0a34c8c2012c8e51124ce9d10e56bd70ab3d7b.zip
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a9abac08165581959590a43a2853162ca44d7d91)
-rw-r--r--CMakeL10n.txt6
-rw-r--r--CMakeLists.txt12
-rw-r--r--template/commonCMakeLists.txt7
3 files changed, 17 insertions, 8 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index ff5d79292af..d21ab815c3a 100644
--- a/CMakeL10n.txt
+++ b/CMakeL10n.txt
@@ -9,7 +9,11 @@
#
#################################################
-cmake_minimum_required( VERSION 3.5 )
+
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
##### include our cmake modules #################
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa1efdeac11..e0f052fb4f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,12 @@
#
#################################################
-cmake_minimum_required( VERSION 3.5 )
+
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
+tde_set_project_version( )
##### general package setup #####################
@@ -27,11 +32,6 @@ include( FindPkgConfig ) # required for find_package( TDE )
include( TDEMacros )
-##### set version number ########################
-
-tde_set_project_version( )
-
-
##### find required stuff #######################
find_package( TDE )
diff --git a/template/commonCMakeLists.txt b/template/commonCMakeLists.txt
index 1d4214efddd..259c326bf87 100644
--- a/template/commonCMakeLists.txt
+++ b/template/commonCMakeLists.txt
@@ -12,7 +12,12 @@
#
#################################################
-cmake_minimum_required( VERSION 3.5 )
+
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
+tde_set_project_version( )
##### general package setup #####################