diff options
| author | Carlos Henrique Lima Melara <charlesmelara@outlook.com> | 2022-12-30 10:17:47 +0100 |
|---|---|---|
| committer | Felix "xq" Queißner <xq@random-projects.net> | 2022-12-30 10:17:47 +0100 |
| commit | d88dd7bfd107dc8c22ae9b91a3b2a06bc7afe815 (patch) | |
| tree | 4eea87c6cec1db8c0a71f4fe064fd2dd5ebd54d7 | |
| parent | c21d804888152a785a38e568c126158597322700 (diff) | |
fix missing kristall version when not building in git repo
| -rw-r--r-- | src/kristall.pro | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kristall.pro b/src/kristall.pro index 5f5bb46..646d302 100644 --- a/src/kristall.pro +++ b/src/kristall.pro @@ -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. |
