cmake-gui fails to re-enable UI widgets for CACHE variables when switching to <custom> preset
cmake-gui replaces UI widgets (e.g. checkboxes) for CACHE
variables whose values are set by a CMake preset:
While the user can modify the text values, they get reset the next time they click Configure.
However, when the user changes the preset to <custom>
(while keeping the build / binary directory the same), the text values do not change back to UI widgets:
The user is still able to modify the text values and their modifications persist when they click Configure, but the experience is poor.
cmake-gui should restore the UI widgets for all variables when the user changes the preset to <custom>
since they are now editable.
The experience should match the one when the user selects the <custom>
preset at the beginning, in a clean build directory:
Overriding CACHE
variables that were set by a preset is very easy on the command line (cmake --preset MyPreset -DSetViaPreset=On
) and it would be great if cmake-gui made that easier than it is now.