Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Molkentin <danimo@owncloud.com>2013-12-09 22:03:22 +0400
committerDaniel Molkentin <danimo@owncloud.com>2013-12-09 22:03:22 +0400
commitdd323bc29674ed6f979e1ce31d917855b9e0a1ea (patch)
treec2a634cd1542ce26362cdc872dc162e456917fa5 /VERSION.cmake
parent31989d23a69db5fe0cdb7a02f86e3e456f48861b (diff)
Don't invariably set variables that could be also set externally
We can't use cached variables here, since at least the suffix may change at any time, and it needs to take precedence over any cached content, which cmake doesn't seem to allow for.
Diffstat (limited to 'VERSION.cmake')
-rw-r--r--VERSION.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/VERSION.cmake b/VERSION.cmake
index ac1f66f30..11e25bfa6 100644
--- a/VERSION.cmake
+++ b/VERSION.cmake
@@ -3,8 +3,13 @@ set( MIRALL_VERSION_MINOR 5 )
set( MIRALL_VERSION_PATCH 0 )
set( MIRALL_SOVERSION 0 )
-set( MIRALL_VERSION_SUFFIX "beta3" ) # "e.g. beta1, beta2, rc1"
-set( MIRALL_VERSION_BUILD "0" ) # "Integer ID. Generated by the build system
+if ( NOT DEFINED MIRALL_VERSION_SUFFIX )
+ set( MIRALL_VERSION_SUFFIX "beta3" ) #e.g. beta1, beta2, rc1
+endif( NOT DEFINED MIRALL_VERSION_SUFFIX )
+
+if( NOT DEFINED MIRALL_VERSION_BUILD )
+ set( MIRALL_VERSION_BUILD "0" ) # Integer ID. Generated by the build system
+endif( NOT DEFINED MIRALL_VERSION_BUILD )
# Composite defines
# Used e.g. for libraries Keep at x.y.z.