Skip to content

Commit

Permalink
fix missing kristall version when not building in git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
charles2910 authored and Felix "xq" Queißner committed Dec 30, 2022
1 parent c21d804 commit d88dd7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/kristall.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d88dd7b

Please sign in to comment.