Hide unrelated presets

I know how to use a condition to restrict a preset to a particular platform; but I think I’m looking for something finer-grained than that. Consider: I’d like to provide a preset to generate Visual Studio 2015 project files, but hide this from someone who’s using CMake/Ninja in Visual Studio 2022. Is this possible?

Cc: @kyle.edwards

Presets are evaluated and displayed before CMake knows what generator you’re using. There’s no way for it to know that you’re using Ninja/VS2022 until it starts the configure step, after the preset has already been chosen.

So, is there a suggested strategy for providing a presets to generate Visual Studio 2015 project files alongside ones appropriate for CMake/Ninja in Visual Studio 2022 or Visual Studio Code? Or are presets simply inappropriate for this purpose?