add way to make an include in a CMakePresets.json file optional

Hello,
I am trying to get started contributing to a relatively large open source project. There is submodule in the project (community contributions) that is for all intents optional.

If one simply clones the primary repo, without submodules, cmake --list-presets is broken (file not found – with no details, btw). However, as I mentioned, there are presets within the primary repo that are perfectly reasonable to select that don’t require the submodule at all.

Please provide a way to mark an include as optional and if it is missing, do not error on cmake --list-presets.

Cc: @kyle.edwards

Hello.
Is there a ticket on the gitlab.kitware.com for this issue for tracking?
Thank you.

Here’s a filtered list: https://gitlab.kitware.com/cmake/cmake/-/issues/?sort=updated_desc&state=opened&label_name[]=area%3Apresets&first_page_size=100

If you don’t find it there, feel free to open a new one.