chore: Further tweaks to version string (#1895)

* fix: Only define SUFFIX if PR or BRANCH build
Also, only define `VERSION_TAG` if VERSION_TAG exists.

* fix: Omit GIT SHA for colorlcd also if a tagged build
This commit is contained in:
Peter Feerick
2022-04-26 10:32:01 +10:00
committed by GitHub
parent 0514ed2b99
commit 3493d69c5b
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -2,9 +2,7 @@
#define TIME "@TIME@"
#define VERSION "@VERSION@"
#define VERSION_SUFFIX "@VERSION_SUFFIX@"
#if defined(VERSION_TAG)
#define VERSION_TAG "@VERSION_TAG@"
#endif
#cmakedefine VERSION_TAG "@VERSION_TAG@"
#define CODENAME "@CODENAME@"
#define VERSION_MAJOR @VERSION_MAJOR@