summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 11:03:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 11:58:29 +0900
commitf8cba5a90205fd3dedaf74f816f746c2b6f20d5e (patch)
treea43b73ac676244340da6be3e6cee7cba475d9889
parent1e8d02e85650c4ad5515c94b0b59aca8e500afa1 (diff)
downloadkoffice-i18n-f8cba5a90205fd3dedaf74f816f746c2b6f20d5e.tar.gz
koffice-i18n-f8cba5a90205fd3dedaf74f816f746c2b6f20d5e.zip
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--CMakeLists.txt12
-rw-r--r--template/commonCMakeLists.txt7
2 files changed, 12 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54b61978..58abee4b 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 72471757..deac2117 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 #####################