diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf index 4dfffc4c2f..40dd9033dd 100644 --- a/mkspecs/features/qt_functions.prf +++ b/mkspecs/features/qt_functions.prf @@ -232,11 +232,12 @@ defineTest(qtAddToolEnv) { equals(ds, /) { contains($${env}.CONFIG, prepend): infix = \${$$name:+:\$$$name} else: infix = - val = "$$name=$$join(value, :)$$infix" + val = "$$name=$$shell_quote($$join(value, :))$$infix" } else { # Escape closing parens when expanding the variable, otherwise cmd confuses itself. contains($${env}.CONFIG, prepend): infix = ;%$$name:)=^)% else: infix = + value ~= s,\\),^),g val = "(set $$name=$$join(value, ;)$$infix) &" } isEmpty(3): !contains(TEMPLATE, vc.*) {