diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-21 16:25:14 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-22 20:47:10 +0200 |
commit | da9e22f029409aa32631328955abf95974faa952 (patch) | |
tree | 013b0f1eadeb5b1fe0782cf5d0f5174280f4e086 /bin | |
parent | 736408880bfc67246959b2a745849d849b269e0f (diff) | |
download | qtbase-da9e22f029409aa32631328955abf95974faa952.tar.gz |
CMake: Fix running qt-configure-module without arguments
We need to make sure to create a config.opt file, even if it's empty.
This is the same fix we did for the .bat file in
dad9550305831784f124c44d08e1e20983415bda.
Change-Id: I79c507cfe0f9517d3033a773d3a5cf69eb13cfe6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/qt-configure-module.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/qt-configure-module.in b/bin/qt-configure-module.in index 71151fc3a0..e102c0927b 100755 --- a/bin/qt-configure-module.in +++ b/bin/qt-configure-module.in @@ -21,7 +21,7 @@ if [ ! -f "$module_root/CMakeLists.txt" ]; then fi optfile=config.opt -if [ -f "$optfile" ]; then rm "$optfile"; fi +echo > "$optfile" for arg in "$@"; do echo $arg >> "$optfile" done |