Files
cmake/Tests/RunCMake/SarifOutput/ScriptModeSarifVariable-check.cmake

5 lines
231 B
CMake

# Script mode should ignore the SARIF project variable and export nothing
if (EXISTS "${RunCMake_TEST_BINARY_DIR}/.cmake/sarif/cmake.sarif")
message(FATAL_ERROR "SARIF file should not have been generated in script mode")
endif()