diff --git a/QGCCommon.pri b/QGCCommon.pri index 3c3f7735765ec8a055ad2ec51d937b859a1bb4d2..002d7e30b42e7694a3bd5e7e10b60bd6e4f9f57e 100644 --- a/QGCCommon.pri +++ b/QGCCommon.pri @@ -90,7 +90,9 @@ MobileBuild { exists ($$PWD/.git) { GIT_DESCRIBE = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags) GIT_HASH = $$system(git rev-parse HEAD) - VERSION = $$section($$replace($$replace(GIT_DESCRIBE, "v", ""), "-", "."), ".", 0, 3) + VERSION = $$replace(GIT_DESCRIBE, "v", "") + VERSION = $$replace(VERSION, "-", ".") + VERSION = $$section(VERSION, ".", 0, 3) message(QGroundControl version $${GIT_DESCRIBE} hash $${GIT_HASH}) } else { GIT_DESCRIBE = None