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:
parent
f9eb65c9a5
commit
d310f5f137
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue