2 COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
3 OUTPUT_VARIABLE GIT_BRANCH
4 OUTPUT_STRIP_TRAILING_WHITESPACE
7 COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
8 OUTPUT_VARIABLE GIT_COMMIT_HASH
9 OUTPUT_STRIP_TRAILING_WHITESPACE
11 CONFIGURE_FILE(${SRC} ${DST})