You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
497 B
15 lines
497 B
# 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 GIT_DESCRIBE \"${GIT_DESCRIBE}\"%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 )
|
|
|