From f818f73c0949a7133a54d91234a7965577eb2c0f Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 4 Mar 2024 10:14:55 +0100 Subject: [PATCH] CMake: Fix configure -help to work The -help option was parsed by init-repository and not passed along to configure. Make sure to pass it. Currently this means a developer won't be able to see the init-repository help when using the configure script. Task-number: QTBUG-120030 Change-Id: I5d8c0f9147e1fcd5522ab98ad9ab0947a8411d1a Reviewed-by: Joerg Bornemann --- cmake/QtIRHelpers.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/QtIRHelpers.cmake b/cmake/QtIRHelpers.cmake index 7327ed18..9f372932 100644 --- a/cmake/QtIRHelpers.cmake +++ b/cmake/QtIRHelpers.cmake @@ -195,6 +195,12 @@ function(qt_ir_get_args_from_optfile_configure_filtered optfile_path out_var) endif() endif() + # Pass --help if it was requested. + qt_ir_is_help_requested(show_help) + if(show_help) + list(APPEND filtered_args "-help") + endif() + set(${out_var} "${filtered_args}" PARENT_SCOPE) endfunction()