diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2013-12-09 22:03:22 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2013-12-09 22:03:22 +0400 |
commit | dd323bc29674ed6f979e1ce31d917855b9e0a1ea (patch) | |
tree | c2a634cd1542ce26362cdc872dc162e456917fa5 /VERSION.cmake | |
parent | 31989d23a69db5fe0cdb7a02f86e3e456f48861b (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.cmake | 9 |
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. |