diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2024-03-04 10:14:55 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2024-03-04 17:22:39 +0100 |
commit | f818f73c0949a7133a54d91234a7965577eb2c0f (patch) | |
tree | 55d6fd77956e1a6c315d9efd356968d0c436d911 | |
parent | 7c8bab37bb792086f38d704f37bc8b712311d0f7 (diff) |
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 <joerg.bornemann@qt.io>
-rw-r--r-- | cmake/QtIRHelpers.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
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() |