summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-03-15 11:09:40 +0900
committerMichele Calgaro <[email protected]>2024-03-17 17:21:38 +0900
commitf0d33ac8b8c28c50f4f6894e1f43773223e9f998 (patch)
treef7b84fa9af0c5e1535376e907dfdcce5879cc7cc
parent6b77cea8755dc1e618ed779e00abdfbf9aa80348 (diff)
downloadtdepowersave-f0d33ac8b8c28c50f4f6894e1f43773223e9f998.tar.gz
tdepowersave-f0d33ac8b8c28c50f4f6894e1f43773223e9f998.zip
Use centralized cmake version
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit d586a58d890ee6b75fe2fba3bc3271f0d7fe22bd)
-rw-r--r--CMakeL10n.txt6
-rw-r--r--CMakeLists.txt12
2 files changed, 11 insertions, 7 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index e0b1b56..0176702 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 43b4e4e..1d1089a 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 #####################
@@ -29,11 +34,6 @@ include( CheckCXXSourceCompiles )
include( TDEMacros )
-##### set version number ########################
-
-tde_set_project_version( )
-
-
##### setup install paths #######################
include( TDESetupPaths )