+
+ # generate the short version of the revision hash
+ execute_process(COMMAND git rev-parse --short ${GIT_SHA1}
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ RESULT_VARIABLE res
+ OUTPUT_VARIABLE GIT_SHORT_SHA1)
+
+ # if the rev-parse fails we set the short sha to the long initial one
+ if(NOT res EQUAL 0)
+ set(GIT_SHORT_SHA1 ${GIT_SHA1})
+ endif()
+
+ message(STATUS "Aliroot branch/tag: \"${ALIROOT_BRANCH}\" - Revision: \"${GIT_SHORT_SHA1}\" ")