@ -420,16 +420,22 @@ set(STORM_VERSION_MAJOR "${CMAKE_MATCH_1}")
set ( STORM_VERSION_MINOR "${CMAKE_MATCH_2}" )
set ( STORM_VERSION_PATCH "${CMAKE_MATCH_3}" )
set ( STORM_GIT_VERSION_REST "${CMAKE_MATCH_4}" )
# p a r s e r e s t o f t h e form ( -label ) - c o m m i t s a h e a d - h a s h - a p p e n d i x
# p a r s e r e s t o f t h e form ( -label ) - c o m m i t s a h e a d - hash ( -appendix )
string ( REGEX MATCH "^(\\-([a-z][a-z0-9\\.]+))?\\-([0-9]+)\\-([a-z0-9]+)(\\-.*)?$" STORM_VERSION_REST_MATCH "${STORM_GIT_VERSION_REST}" )
set ( STORM_VERSION_LABEL "${CMAKE_MATCH_2}" ) # m i g h t b e e m p t y
set ( STORM_VERSION_COMMITS_AHEAD "${CMAKE_MATCH_3}" )
set ( STORM_VERSION_TAG_HASH "${CMAKE_MATCH_4}" )
set ( STORM_VERSION_TAG_HASH "${CMAKE_MATCH_4}" ) # i s n o t u s e d
set ( STORM_VERSION_APPENDIX "${CMAKE_MATCH_5}" ) # m i g h t b e e m p t y
set ( STORM_VERSION_DIRTY boost::none )
if ( NOT "${STORM_GIT_VERSION_STRING}" STREQUAL "" )
# c h e c k w h e t h e r t h e g i t v e r s i o n l o o k u p f a i l e d
if ( STORM_GIT_VERSION_STRING MATCHES "NOTFOUND" )
set ( STORM_VERSION_SOURCE "VersionSource::Static" )
set ( STORM_VERSION_COMMITS_AHEAD 0 )
set ( STORM_VERSION_DIRTY boost::none )
include ( version.cmake )
message ( WARNING "Storm - Git version information not available, statically assuming version ${STORM_VERSION_MAJOR}.${STORM_VERSION_MINOR}.${STORM_VERSION_PATCH}." )
else ( )
set ( STORM_VERSION_SOURCE "VersionSource::Git" )
if ( "${STORM_VERSION_APPENDIX}" MATCHES "^.*dirty.*$" )
set ( STORM_VERSION_DIRTY "true" )
else ( )
@ -437,15 +443,6 @@ if (NOT "${STORM_GIT_VERSION_STRING}" STREQUAL "")
endif ( )
endif ( )
# n o w c h e c k w h e t h e r t h e g i t v e r s i o n l o o k u p f a i l e d
set ( STORM_VERSION_SOURCE "VersionSource::Git" )
if ( STORM_GIT_VERSION_STRING MATCHES "NOTFOUND" )
set ( STORM_VERSION_SOURCE "VersionSource::Static" )
set ( STORM_VERSION_COMMITS_AHEAD "boost::none" )
include ( version.cmake )
message ( WARNING "Storm - Git version information not available, statically assuming version ${STORM_VERSION_MAJOR}.${STORM_VERSION_MINOR}.${STORM_VERSION_PATCH}." )
endif ( )
# c h e c k w h e t h e r t h e r e i s a label ( 'alpha', 'pre', etc. )
if ( "${STORM_VERSION_LABEL}" STREQUAL "" )
set ( STORM_VERSION_LABEL_STRING "" )
@ -454,18 +451,19 @@ else()
endif ( )
# c h e c k f o r d e v e l o p m e n t v e r s i o n w i t h c o m m i t s a h e a d o f l a t e s t t a g
set ( STORM_VERSION_DEV "false" )
set ( STORM_VERSION_DEV_STRING "" )
if ( STORM_VERSION_COMMITS_AHEAD )
set ( STORM_VERSION_DEV "true" )
set ( STORM_VERSION_DEV_STRING " (dev)" )
if ( "${STORM_VERSION_LABEL}" STREQUAL "" )
# i n c r e a s e p a t c h n u m b e r t o i n d i c a t e n e w e r v e r s i o n
MATH ( EXPR STORM_VERSION_DEV_PATCH "${STORM_VERSION_PATCH}+1" )
else ( )
set ( STORM_VERSION_DEV_PATCH "${STORM_VERSION_PATCH}" )
endif ( )
set ( STORM_VERSION_DEV "true" )
set ( STORM_VERSION_DEV_STRING " (dev)" )
else ( )
set ( STORM_VERSION_COMMITS_AHEAD 0 )
set ( STORM_VERSION_DEV "false" )
set ( STORM_VERSION_DEV_STRING "" )
set ( STORM_VERSION_DEV_PATCH ${ STORM_VERSION_PATCH } )
endif ( )