cmake: Add SARIF diagnostics output support

Closes: #26587
37 files changed