summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-06-22 10:59:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-06-22 10:59:53 +0900
commitbf75ce9b7f33cb6bc2359aba10b0a3211bcbcd3e (patch)
tree2cd4faeeb3624fe07cb0ec57a54fca775786dc93
parent1374e49c4e3bf5e1467cb83b243a03453b41d6a9 (diff)
downloadtde-i18n-bf75ce9b.tar.gz
tde-i18n-bf75ce9b.zip
Use TDE cmake macro to set version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--CMakeLists.txt6
-rw-r--r--template/commonCMakeLists.txt6
2 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b598df3e131..e91b0e64f0b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,7 +15,6 @@ cmake_minimum_required( VERSION 3.1 )
##### general package setup #####################
project( tde-i18n )
-set( VERSION R14.1.0 )
##### include essential cmake modules ###########
@@ -28,6 +27,11 @@ 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 d4b49416ad9..7ef1d99cc77 100644
--- a/template/commonCMakeLists.txt
+++ b/template/commonCMakeLists.txt
@@ -21,7 +21,6 @@ string( REGEX REPLACE ".*-([^-]*)$" "\\1" _lang ${CMAKE_CURRENT_SOURCE_DIR} )
message( STATUS "Configure for language ${_lang}" )
project( tde-i18n-${_lang} )
-set( VERSION R14.1.0 )
##### include essential cmake modules ###########
@@ -34,6 +33,11 @@ include( FindPkgConfig ) # required for find_package( TDE )
include( TDEMacros )
+##### set version number ########################
+
+tde_set_project_version( )
+
+
##### find required stuff #######################
find_package( TDE )