Hi, this is a suggestion for a new feature which I feel would be really useful. The build options in cmake-variants.yaml are permuted to produce all the variants presented in the drop-down. As you mention here, the number of variants grows very large for a project with a few options. But often, in some projects there are often only a few valid variants. It would be really useful to be able to only present these valid ones to the user.
Could there be an option within cmake-variants.yaml to list valid variants, perhaps an additional entry such as validVariants?
If this was felt to be a good idea, I would be happy to have a go at coding this myself.
Brief Issue Summary
Hi, this is a suggestion for a new feature which I feel would be really useful. The build options in cmake-variants.yaml are permuted to produce all the variants presented in the drop-down. As you mention here, the number of variants grows very large for a project with a few options. But often, in some projects there are often only a few valid variants. It would be really useful to be able to only present these valid ones to the user. Could there be an option within cmake-variants.yaml to list valid variants, perhaps an additional entry such as validVariants?
If this was felt to be a good idea, I would be happy to have a go at coding this myself.
CMake Tools Diagnostics
Debug Log
Additional Information
No response