diff options
author | Björn Schäpers <bjoern@hazardy.de> | 2022-02-10 00:47:16 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-02-15 08:09:00 +0000 |
commit | 69862a1ef2a25ba4acd419619016b1ba8bb708e8 (patch) | |
tree | 7a4595465839b83d97272dc1f3e7ff16b9934d0b /configure.bat | |
parent | 53de02c76c463cc9a80535e0274208d9d78b77e1 (diff) |
configure: Fix -redo when configure line contained equal sign(s)
If the original configure arguments contained equal sign(s) like in
configure ... -- -DQT_BUILD_SUBMODULES=qtbase;...
The following error message was printed:
=qtbase was unexpected at this time.
The reason is that the conditional
if "%rargs%" == ""
would expand to something like
if ""-DQT_BUILD_SUBMODULES=qtsvg"" == ""
which is invalid, because the equal sign is used outside of a string
literal.
Use delayed expansion in the conditional to fix this.
Change-Id: I8c40d799db2c5aae8cba190ed31804c71a605935
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit c6808d42963d78a816c0b8df77b81ed42d8039e3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'configure.bat')
-rw-r--r-- | configure.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.bat b/configure.bat index 54fa2b2110..c78daf6e3b 100644 --- a/configure.bat +++ b/configure.bat @@ -103,7 +103,7 @@ goto doneargs cd "%TOPQTDIR%" rem Write config.opt if we're not currently -redo'ing -if "%rargs%" == "" ( +if "!rargs!" == "" ( echo %*>config.opt.in cmake -DIN_FILE=config.opt.in -DOUT_FILE=config.opt -DIGNORE_ARGS=-top-level -P "%QTSRC%\cmake\QtWriteArgsFile.cmake" ) |