1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00
Emily Mabrey 7c41c9b2e4
Fix RevisionIdent.h generation (Issue #272)
Modify `cmake-proxies/cmake-modules/Version.cmake` to use `git show` properly.

Signed-off-by: Emily Mabrey <emilymabrey93@gmail.com>
2021-07-14 22:02:09 -04:00

16 lines
481 B
CMake

# Executed during build (NOT configuration) to create/update the
# RevisionIdent.h header. It will only update it if there was
# a change in git.
execute_process(
COMMAND
${GIT} show -s "--format=#define REV_LONG \"%H\"%n#define REV_TIME \"%cd\"%n" --no-notes --no-show-signature
OUTPUT_FILE
${_PRVDIR}/RevisionIdent.h.in
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
configure_file( ${_PRVDIR}/RevisionIdent.h.in ${_PRVDIR}/RevisionIdent.h COPYONLY )