Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fingerterm] Pass version as a define. Contributes JB#35198
Passes the version string as a define, to avoid having to update a potentially version-controlled header file.
- Loading branch information
David Llewellyn-Jones
committed
Feb 5, 2021
1 parent
f21b27a
commit 70b35b1
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#ifndef VERSION_H | ||
#define VERSION_H | ||
const QString PROGRAM_VERSION="1.3.12"; | ||
|
||
#ifndef VERSION_STRING | ||
// It's expected that VERSION_STRING will be defined by the build engine | ||
#define VERSION_STRING "0.0.0" | ||
#endif | ||
|
||
const QString PROGRAM_VERSION=QLatin1String(VERSION_STRING); | ||
#endif | ||
|