cmake: record all disabled options

Before this change, options that were hidden from the cmake-gui due to
unsatisfied config_choice conditions were not recorded in
gen_config.{yaml,json,h}. After this change, these hidden options are
recorded as disabled.

Signed-off-by: Nick Spinale <nick@nickspinale.com>
This commit is contained in:
Nick Spinale
2025-10-22 04:06:31 -07:00
committed by Gerwin Klein
parent f9eb65c9a5
commit d310f5f137

View File

@@ -493,6 +493,7 @@ function(config_choice optionname configname doc)
else()
# Remove this config as it's not valid
unset(${option_cache} CACHE)
cfg_str_add_disabled(local_config_string ${option_config})
endif()
endforeach()
if(NOT found_current)