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
dad9550305.

Change-Id: I79c507cfe0f9517d3033a773d3a5cf69eb13cfe6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Joerg Bornemann 2020-10-21 16:25:14 +02:00
parent 736408880b
commit da9e22f029
1 changed files with 1 additions and 1 deletions

View File

@ -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