configure: Fix implementation glitch

In the code block that transforms the global INPUT_* properties into
variables, there's a check that's supposed to guard already set
'commandline_input_foo_type' variables. However, the input name was
missing from the check, and we always called get_property.

Change-Id: I87b74726492c00a86e7c034c10e8dcf137f67082
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2025-02-20 11:49:29 +01:00
parent 5971e94baf
commit ca407da21e

View File

@ -798,7 +798,7 @@ get_property(config_inputs GLOBAL PROPERTY CONFIG_INPUTS)
list(REMOVE_DUPLICATES config_inputs)
foreach(var ${config_inputs})
get_property(INPUT_${var} GLOBAL PROPERTY INPUT_${var})
if("${commandline_input_type}" STREQUAL "")
if("${commandline_input_${var}_type}" STREQUAL "")
get_property(commandline_input_${var}_type GLOBAL PROPERTY INPUTTYPE_${var})
endif()
endforeach()