fix missing kristall version when not building in git repo

This commit is contained in:
Carlos Henrique Lima Melara 2022-12-30 10:17:47 +01:00 committed by Felix "xq" Queißner
parent c21d804888
commit d88dd7bfd1
1 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,13 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets network multimedia multimediawid
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += KRISTALL_VERSION="\"$(shell cd $$PWD; git describe --tags)\""
KRISTALL_VERSION = $$(KRISTALL_VERSION)
isEmpty(KRISTALL_VERSION) {
KRISTALL_VERSION = $(shell cd $$PWD; git describe --tags)
}
DEFINES += KRISTALL_VERSION="\"$$KRISTALL_VERSION\""
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.