From 45d3c75ab6f29e88637363869a3b0be8df731dec Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 18 Aug 2020 11:43:37 +0200 Subject: [PATCH] CMake: Fix configure -redo on Unix One can now place a config.opt file in an otherwise empty build directory and call 'configure -redo'. If config.opt contains the -cmake argument, Qt will be built with CMake as expected. To achieve that, configure must peek into config.opt and look for the -cmake argument. Fixes: QTBUG-86097 Change-Id: I35f76caca862e5a59c2fb850e0aeb6529c826149 Reviewed-by: Alexandru Croitor --- configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 92d290aba24..ab5f4f6991b 100755 --- a/configure +++ b/configure @@ -558,6 +558,13 @@ while [ "$#" -gt 0 ]; do cmake) BUILD_WITH_CMAKE=yes ;; + redo) + if [ -f config.opt ]; then + if grep -e ^-cmake