@ -1,10 +1,15 @@
# G e n e r a t e d f r o m g i t - d e s c r i b e . c m a k e . i n
# G e n e r a t e d f r o m g i t - d e s c r i b e . c m a k e . i n
set ( DFHACK_BUILD_ID "@DFHACK_BUILD_ID@" )
set ( DFHACK_BUILD_ID "@DFHACK_BUILD_ID@" )
if ( NOT(EXISTS "${GIT_EXECUTABLE}" ) )
message ( FATAL_ERROR "git-describe failed: could not find git at ${GIT_EXECUTABLE}" )
endif ( )
execute_process ( COMMAND ${ GIT_EXECUTABLE } describe --tags --abbrev=8 --long
execute_process ( COMMAND ${ GIT_EXECUTABLE } describe --tags --abbrev=8 --long
W O R K I N G _ D I R E C T O R Y " $ { d f h a c k _ S O U R C E _ D I R } "
W O R K I N G _ D I R E C T O R Y " $ { d f h a c k _ S O U R C E _ D I R } "
O U T P U T _ V A R I A B L E D F H A C K _ G I T _ D E S C R I P T I O N
O U T P U T _ V A R I A B L E D F H A C K _ G I T _ D E S C R I P T I O N
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E )
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E
R E S U L T _ V A R I A B L E D F H A C K _ G I T _ D E S C R I P T I O N _ R E S U L T )
execute_process ( COMMAND ${ GIT_EXECUTABLE } rev-parse HEAD
execute_process ( COMMAND ${ GIT_EXECUTABLE } rev-parse HEAD
W O R K I N G _ D I R E C T O R Y " $ { d f h a c k _ S O U R C E _ D I R } "
W O R K I N G _ D I R E C T O R Y " $ { d f h a c k _ S O U R C E _ D I R } "
O U T P U T _ V A R I A B L E D F H A C K _ G I T _ C O M M I T
O U T P U T _ V A R I A B L E D F H A C K _ G I T _ C O M M I T
@ -24,6 +29,10 @@ execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
O U T P U T _ V A R I A B L E D F H A C K _ G I T _ X M L _ C O M M I T
O U T P U T _ V A R I A B L E D F H A C K _ G I T _ X M L _ C O M M I T
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E )
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E )
if ( NOT( ${ DFHACK_GIT_DESCRIPTION_RESULT } EQUAL 0 ) )
message ( FATAL_ERROR "git-describe failed: ${DFHACK_GIT_DESCRIPTION_RESULT}" )
endif ( )
if ( ${ DFHACK_GIT_TAGGED_RESULT } EQUAL 0 )
if ( ${ DFHACK_GIT_TAGGED_RESULT } EQUAL 0 )
set ( DFHACK_GIT_TAGGED TRUE )
set ( DFHACK_GIT_TAGGED TRUE )
else ( )
else ( )