display correct version if source isn't a git checkout

pull/1/head
Sebastian Held 2012-06-23 12:48:22 +02:00
parent 6d22f23a8e
commit 02f16a40f0
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ MPI_SUPPORT {
# add git revision # add git revision
GITREV = $$system(git describe --tags) GITREV = $$system(git describe --tags)
isEmpty($$GITREV):GITREV=$$VERSION
DEFINES += GIT_VERSION=\\\"$$GITREV\\\" DEFINES += GIT_VERSION=\\\"$$GITREV\\\"