From 8ce8538c9ad6e484ec1e8c422c8aec136d7b8026 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 15 Mar 2024 11:08:22 +0900 Subject: [PATCH] Use centralized cmake version Signed-off-by: Michele Calgaro (cherry picked from commit 623997ab7e980b3f310422d05a108d38539072a4) --- CMakeL10n.txt | 6 +++++- CMakeLists.txt | 11 +++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CMakeL10n.txt b/CMakeL10n.txt index ec40e4d..a9c7e38 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 fe0aa78..90e29cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,11 @@ ############################################ -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 @@ -31,11 +35,6 @@ include( CheckCXXSourceCompiles ) include( TDEMacros ) -##### set version number ######################## - -tde_set_project_version( ) - - ##### setup install paths include( TDESetupPaths )