cmRST: support `versionadded` and `versionchanged` directives

This makes `versionadded` and `versionchanged` directives show up in
`cmake --help-*` output instead of disappearing (and potentially making
empty sections).

Fixes: #22808
5 files changed