summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt_functions.prf7
1 files changed, 5 insertions, 2 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
index 2d8f81bae1..1d24ed9c00 100644
--- a/mkspecs/features/qt_functions.prf
+++ b/mkspecs/features/qt_functions.prf
@@ -192,13 +192,16 @@ defineTest(qtAddToolEnv) {
equals(QMAKE_DIR_SEP, /) {
contains($${env}.CONFIG, prepend): infix = \${$$name:+:\$$$name}
else: infix =
- $$1 = "$$name=$$join(value, :)$$infix $$eval($$1)"
+ val = "$$name=$$join(value, :)$$infix"
} else {
# Escape closing parens when expanding the variable, otherwise cmd confuses itself.
contains($${env}.CONFIG, prepend): infix = ;%$$name:)=^)%
else: infix =
- $$1 = "(set $$name=$$join(value, ;)$$infix) & $$eval($$1)"
+ val = "(set $$name=$$join(value, ;)$$infix) &"
}
+ contains(MAKEFILE_GENERATOR, MS.*): val ~= s,%,%%,g
+ else: val ~= s,\\\$,\$\$,g
+ $$1 = "$$val $$eval($$1)"
}
}
export($$1)