summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 10:59:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-17 15:51:55 +0900
commit21f900e2b633fcd6044b59e9c429e581eadbe7fc (patch)
treeee05d437f90650904dfa8cd1e2398ee091baed9b
parent65ffe0c55b897e60e01221ab2269dcb9a9de1e8a (diff)
downloadk9copy-21f900e2b633fcd6044b59e9c429e581eadbe7fc.tar.gz
k9copy-21f900e2b633fcd6044b59e9c429e581eadbe7fc.zip
Use centralized cmake versionr14.1.2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b8498ebaee72597c00bc25d4427a25644d5d62f1)
-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 1f5aadf..8311491 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 190f69f..81fad97 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( k9copy )
-#### 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 )