diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-15 11:17:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-17 21:23:04 +0900 |
commit | 3d0a34c8c2012c8e51124ce9d10e56bd70ab3d7b (patch) | |
tree | 37f9ec57e5b4227e8b905dfa6e05fbea7e58ad84 | |
parent | bfd8a62ca159072eb1a157d5f5ba06c05a1102e7 (diff) | |
download | tde-i18n-3d0a34c8c2012c8e51124ce9d10e56bd70ab3d7b.tar.gz tde-i18n-3d0a34c8c2012c8e51124ce9d10e56bd70ab3d7b.zip |
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a9abac08165581959590a43a2853162ca44d7d91)
-rw-r--r-- | CMakeL10n.txt | 6 | ||||
-rw-r--r-- | CMakeLists.txt | 12 | ||||
-rw-r--r-- | template/commonCMakeLists.txt | 7 |
3 files changed, 17 insertions, 8 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt index ff5d79292af..d21ab815c3a 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 fa1efdeac11..e0f052fb4f2 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 1d4214efddd..259c326bf87 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 ##################### |