summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 11:15:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-17 23:08:56 +0900
commitcbfeb05e34e2f675805b80ac6e5664d940b1a280 (patch)
tree792e81f994e313be4996d9256a9e8237492119d9
parent59af4855e8577c1cb61068391d0a2cc4d75b0b01 (diff)
downloadkommando-cbfeb05e34e2f675805b80ac6e5664d940b1a280.tar.gz
kommando-cbfeb05e34e2f675805b80ac6e5664d940b1a280.zip
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c50d7ebfbf6e62afe0c5732702e7128a5b8eaab0)
-rw-r--r--CMakeL10n.txt6
-rw-r--r--CMakeLists.txt17
2 files changed, 13 insertions, 10 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index 85f0c76..2f3ae25 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 c700bf8..bb9f89f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,15 +7,19 @@
############################################
-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
+##### general package setup
project( kommando )
-#### include essential cmake modules
+##### include essential cmake modules
include( FindPkgConfig )
include( CheckFunctionExists )
@@ -26,16 +30,11 @@ include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
-#### include our cmake modules
+##### include our cmake modules
include( TDEMacros )
-##### set version number
-
-tde_set_project_version( )
-
-
##### setup install paths
include( TDESetupPaths )