We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0b8a6 commit 0a71ed4Copy full SHA for 0a71ed4
src/src.pro
@@ -10,10 +10,9 @@ if(!defined(APR_INCLUDE, var)) {
10
}
11
exists(local-config.pri):include(local-config.pri)
12
13
-VERSION = $$system(git --no-pager show --pretty=oneline --no-notes | head -1 | cut -b-40)
14
- !isEmpty(VERSION){
15
- VERSION = $${VERSION}
16
- }
+if(!defined(VERSION, var)) {
+ VERSION = $$system(git --no-pager show --pretty=oneline --no-notes | head -1 | cut -b-40)
+}
17
18
VERSTR = '\\"$${VERSION}\\"' # place quotes around the version string
19
DEFINES += VER=\"$${VERSTR}\" # create a VER macro containing the version string
0 commit comments