Fix bug where clang-tidy CI job always passes

This commit is contained in:
Chris Thrasher 2022-12-14 00:17:02 -07:00
parent 098f6927d2
commit 8a5e0f6933

View File

@ -20,4 +20,7 @@ else()
endif() endif()
# Run # Run
execute_process(COMMAND run-clang-tidy -clang-tidy-binary ${CLANG_TIDY_EXECUTABLE} -p ${PROJECT_BINARY_DIR}) execute_process(COMMAND run-clang-tidy -clang-tidy-binary ${CLANG_TIDY_EXECUTABLE} -p ${PROJECT_BINARY_DIR} RESULTS_VARIABLE EXIT_CODE)
if(NOT EXIT_CODE STREQUAL 0)
message(FATAL_ERROR "Analysis failed")
endif()