deal with %PATH% containing parentheses
[profile/ivi/qtbase.git] / mkspecs / features / qt_functions.prf
index fe7b29a..ee5acbc 100644 (file)
@@ -157,7 +157,8 @@ defineTest(qtPrepareTool) {
                 error("Operating system not supported.")
             $$1 = "$$var=$$join(deppath, :)${$$var:+:\$$$var} $$eval($$1)"
         } else {
-            $$1 = "(set PATH=$$join(deppath, ;);%PATH%) & $$eval($$1)"
+            # Escape closing parens when expanding %PATH%, otherwise cmd confuses itself.
+            $$1 = "(set PATH=$$join(deppath, ;);%PATH:)=^)%) & $$eval($$1)"
         }
     }