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.
This commit is contained in:
Daniel Molkentin 2013-12-09 19:03:22 +01:00
parent 31989d23a6
commit dd323bc296

View file

@ -3,8 +3,13 @@ set( MIRALL_VERSION_MINOR 5 )
set( MIRALL_VERSION_PATCH 0 ) set( MIRALL_VERSION_PATCH 0 )
set( MIRALL_SOVERSION 0 ) set( MIRALL_SOVERSION 0 )
set( MIRALL_VERSION_SUFFIX "beta3" ) # "e.g. beta1, beta2, rc1" if ( NOT DEFINED MIRALL_VERSION_SUFFIX )
set( MIRALL_VERSION_BUILD "0" ) # "Integer ID. Generated by the build system 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 # Composite defines
# Used e.g. for libraries Keep at x.y.z. # Used e.g. for libraries Keep at x.y.z.