diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-07-09 14:09:01 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-09 15:14:44 +0200 |
commit | 48b01da4d365a3a2b689c7374904fe6ba5e63520 (patch) | |
tree | 6c65791139ebd37f074bccba95c242ecf7b842a8 /mkspecs/features/qt_functions.prf | |
parent | e9d298f4a813f80e1bc88286f9f636c57adce2c2 (diff) |
deal with %PATH% containing parentheses
we need to make cmd escape the expanded output, so it doesn't confuse
its own command line parsing (which happens later!).
Change-Id: I0c2c71d276c0aebe3c2163f7f08db8050a14d7ce
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'mkspecs/features/qt_functions.prf')
-rw-r--r-- | mkspecs/features/qt_functions.prf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf index fe7b29afce..ee5acbcfa7 100644 --- a/mkspecs/features/qt_functions.prf +++ b/mkspecs/features/qt_functions.prf @@ -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)" } } |