@ -36,6 +36,7 @@ if(RET)
message ( WARNING "Cannot determine current commit. Make sure that you are building either from a Git working tree or from a source archive." )
message ( WARNING "Cannot determine current commit. Make sure that you are building either from a Git working tree or from a source archive." )
set ( VERSIONTAG "unknown" )
set ( VERSIONTAG "unknown" )
set ( VERSION_IS_RELEASE "false" )
configure_file ( "src/version.cpp.in" "${TO}" )
configure_file ( "src/version.cpp.in" "${TO}" )
else ( )
else ( )
string ( SUBSTRING ${ COMMIT } 0 9 COMMIT )
string ( SUBSTRING ${ COMMIT } 0 9 COMMIT )
@ -47,6 +48,7 @@ else()
if ( NOT TAGGEDCOMMIT )
if ( NOT TAGGEDCOMMIT )
message ( WARNING "Cannot determine most recent tag. Make sure that you are building either from a Git working tree or from a source archive." )
message ( WARNING "Cannot determine most recent tag. Make sure that you are building either from a Git working tree or from a source archive." )
set ( VERSIONTAG "${COMMIT}" )
set ( VERSIONTAG "${COMMIT}" )
set ( VERSION_IS_RELEASE "false" )
else ( )
else ( )
message ( STATUS "The most recent tag was at ${TAGGEDCOMMIT}" )
message ( STATUS "The most recent tag was at ${TAGGEDCOMMIT}" )
@ -54,9 +56,11 @@ else()
if ( COMMIT STREQUAL TAGGEDCOMMIT )
if ( COMMIT STREQUAL TAGGEDCOMMIT )
message ( STATUS "You are building a tagged release" )
message ( STATUS "You are building a tagged release" )
set ( VERSIONTAG "release" )
set ( VERSIONTAG "release" )
set ( VERSION_IS_RELEASE "true" )
else ( )
else ( )
message ( STATUS "You are ahead of or behind a tagged release" )
message ( STATUS "You are ahead of or behind a tagged release" )
set ( VERSIONTAG "${COMMIT}" )
set ( VERSIONTAG "${COMMIT}" )
set ( VERSION_IS_RELEASE "false" )
endif ( )
endif ( )
endif ( )
endif ( )