Use TDE cmake macro to set version

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 32f2991d13)
r14.0.x
Michele Calgaro 2 years ago
parent 1807f4c523
commit f8770b4fed
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -34,6 +34,11 @@ include( FindPkgConfig )
include( TDEMacros )
##### set version number ########################
tde_set_project_version( )
##### setup install paths #######################
include( TDESetupPaths )
@ -64,11 +69,10 @@ ENDIF(BUILD_TESTS)
##### versioning ################################
SET(BASE_VERSION 1.0.4)
SET(VERSION "$ENV{KDESVN_VERSION}")
IF(NOT VERSION)
SET(VERSION ${BASE_VERSION})
ENDIF(NOT VERSION)
SET(KDESVN_VERSION \"${VERSION}\")
SET(KDESVN_VERSION "$ENV{KDESVN_VERSION}")
IF(NOT KDESVN_VERSION)
SET(KDESVN_VERSION ${BASE_VERSION})
ENDIF(NOT KDESVN_VERSION)
##### configure checks ##########################

@ -1,7 +1,7 @@
#ifndef _KDESVN_CONFIG_H
#define _KDESVN_CONFIG_H
#cmakedefine VERSION @KDESVN_VERSION@
#cmakedefine VERSION "@KDESVN_VERSION@"
#cmakedefine SQLITE_FOUND
#cmakedefine HAS_SETENV

Loading…
Cancel
Save