draft: feature: Add support for SARIF output
Adds support for CMake to output results in the SARIF format.
Projects can enable SARIF output by setting CMAKE_EXPORT_SARIF=ON
. After running the configure/generate step in a project, the SARIF log will be written to (build)/CMakeResults.sarif
. The log records messages and source file location metadata generated during configure/generate. It will not be written for other operations (e.g. CMake script mode).
Consider using the SARIF Viewer extension for VS Code to visualize the results.