Skip to content

Commit 601fc38

Browse files
committed
Fix qmake version generator
cmake's `execute_process()` has `WORKING_DIRECTORY` parameter, but qmake's `$$system()` does not. As a workaround for qmake, `git` command was called with `--git-dir` provided explicitly. But for dirtyness detection we need `--work-tree`, too. Follow-up for fralx#471 (comment)
1 parent 1ca70bb commit 601fc38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

limereport/limereport.pri

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ RESOURCES += \
215215
$$REPORT_PATH/items/items.qrc
216216

217217
system("git --version") {
218-
LR_VERSION = $$system("git --git-dir=$$PWD/../.git describe --tags --dirty")
218+
LR_VERSION = $$system("git --git-dir=$$PWD/../.git --work-tree=$$PWD/.. describe --tags --dirty")
219219
} else {
220220
LR_VERSION = "0.0.0-unknown"
221221
}

0 commit comments

Comments
 (0)