Fix a small conflict between the CMake and Xcode builds

This commit is contained in:
Leland Lucius 2020-03-07 18:49:37 -06:00
parent abec10d88b
commit 5900c52492
1 changed files with 9 additions and 1 deletions

View File

@ -1,2 +1,10 @@
git show -s --format="#define REV_LONG \"%H\"%n#define REV_TIME \"%cd\"%n" | tee ../src/RevisionIdent.h
fmt='
#if !defined(REV_LONG)
#define REV_LONG "%H"
#endif
#if !defined(REV_TIME)
#define REV_TIME "%cd"
#endif
'
git show -s --format="${fmt}" | tee ../src/RevisionIdent.h
touch ../src/AboutDialog.cpp