Hello,
after playing for hours in trying to do what is supposed to be the main purpose of the user presets, I have no other chances than opening a topic here.
I would like to store the options variables in CMakeUserPresets (rather then hardcoding them in scripts or whatever) and get them automatically merged to the main cmake configuration.
I normally pass the main option through the command line with -DMAINOPTION=ON
and I have automatically loaded all the dependent options. If I also pass a dependent option with -DOPTIONOFMAINOPTION=value
it also gets automatically populated.
How I can obtain the same through user presets?
I tried with cacheVariables
, but when I click configure I just get such variable in the ungrouped entries
and related dependent options don’t appear at all.
Many thanks