summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 11:19:54 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 23:48:06 +0900
commit1f956046d67b2cbf1a2081e82c10215dbf9b60c0 (patch)
tree5437ad2824fe918c5a3e23752f5963cf63238989
parent773b8e234edc0a9459f192247c15901cd6878761 (diff)
downloadtdelibs-1f956046d67b2cbf1a2081e82c10215dbf9b60c0.tar.gz
tdelibs-1f956046d67b2cbf1a2081e82c10215dbf9b60c0.zip
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 95002e69cdd4eca31825560a3e2d37fce0d9f651)
-rw-r--r--CMakeL10n.txt7
-rw-r--r--CMakeLists.txt12
-rw-r--r--tdemarkdown/md4c/CMakeLists.txt7
3 files changed, 18 insertions, 8 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index 01d8e094d..e88a77237 100644
--- a/CMakeL10n.txt
+++ b/CMakeL10n.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( )
##### include our cmake modules #################
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1fce2310..631e7a5a7 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 #####################
@@ -40,11 +45,6 @@ include( TDEMacros )
include( TDESetupPaths )
-##### set version number ########################
-
-tde_set_project_version( )
-
-
##### setup and find essential stuff ############
tde_setup_paths( )
diff --git a/tdemarkdown/md4c/CMakeLists.txt b/tdemarkdown/md4c/CMakeLists.txt
index df4657473..c3f4bdaf1 100644
--- a/tdemarkdown/md4c/CMakeLists.txt
+++ b/tdemarkdown/md4c/CMakeLists.txt
@@ -1,5 +1,10 @@
-cmake_minimum_required( VERSION 3.5 )
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
+tde_set_project_version( )
+
project(MD4C C)
set(MD_VERSION_MAJOR 0)