From a56512b45bc9a7240158d5154549b5fef1446f1a Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Mon, 27 May 2024 18:40:19 +0200 Subject: [PATCH] Fix the UNSUPPORTED argument handling in qt_ir_commandline_option Set the argument name but not it's value in SHORT_NAME condition. It works currently since the argument is visible from upper scope. Pick-to: 6.7 Change-Id: Ie470a256f4735aeac5f50f0e6e5d17e2bb274ba2 Reviewed-by: Alexandru Croitor (cherry picked from commit f83837ec29e54d2fbdcba26753124c7f98cdd7cc) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtIRCommandLineHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtIRCommandLineHelpers.cmake b/cmake/QtIRCommandLineHelpers.cmake index dbd67332..d3569dd7 100644 --- a/cmake/QtIRCommandLineHelpers.cmake +++ b/cmake/QtIRCommandLineHelpers.cmake @@ -146,7 +146,7 @@ macro(qt_ir_commandline_option name) AND "${commandline_option_${arg_SHORT_NAME}_type}" STREQUAL "") set(unsupported "") if(arg_UNSUPPORTED) - set(unsupported "${arg_UNSUPPORTED}") + set(unsupported "UNSUPPORTED") endif() set(common "")