summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-10-21 16:25:14 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-10-22 20:47:10 +0200
commitda9e22f029409aa32631328955abf95974faa952 (patch)
tree013b0f1eadeb5b1fe0782cf5d0f5174280f4e086 /bin
parent736408880bfc67246959b2a745849d849b269e0f (diff)
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-xbin/qt-configure-module.in2
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