Utilities/Sphinx: Restore trailing parens on command cross-references
Since !8305 (merged) we always convert cmake:command
domain cross-references to
use the explicit text <text>
form. This breaks the XRefRole's
fix_parens
setting that we use to render cmd
as cmd()
.
Instead, transform cmd(sub)
to cmd(sub) <cmd(sub)>
to preserve
the sub-command link destination, but leave cmd
alone and let
XRefRole convert it to cmd()
.