From 2dc0c01449c0c55468957f7553813ca7f97989d4 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 20 Nov 2023 12:51:06 +0100 Subject: [PATCH] configure: Make sure the configure script exits with cmake's exit code The configure script always returned exit code 0 even if the underlying cmake call failed. Make sure to exit with the same exit code that the cmake process does. [ChangeLog][Build System] The configure script on UNIX systems will now exit with the same exit code that the underlying cmake process exited with. Pick-to: 6.5 6.6 Change-Id: I2cb43e162bb96f4e60320522895aac9bb5c5bc9e Reviewed-by: Thiago Macieira Reviewed-by: Alexey Edelev --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index ee8362f33e..a8a5066032 100755 --- a/configure +++ b/configure @@ -163,6 +163,6 @@ if [ -n "$CFG_TOPLEVEL" ]; then cd .. fi -cmake "-DOPTFILE=${optfilepath}" ${top_level_arg} ${fresh_requested_arg} -P "${relpath}/cmake/QtProcessConfigureArgs.cmake" +exec cmake "-DOPTFILE=${optfilepath}" ${top_level_arg} ${fresh_requested_arg} -P "${relpath}/cmake/QtProcessConfigureArgs.cmake" IFS=$SAVED_IFS