From da9e22f029409aa32631328955abf95974faa952 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 21 Oct 2020 16:25:14 +0200 Subject: [PATCH] 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 --- bin/qt-configure-module.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/qt-configure-module.in b/bin/qt-configure-module.in index 71151fc3a0b..e102c0927be 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