Files
CMake/Tests/RunCMake/ClangTidy/C-bad.cmake
T
Brad King 80ebc55a7c cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zero
When using `<LANG>_CLANG_TIDY` our internal launcher for the tool must
capture its return code and stderr and report them on failure.
Otherwise incorrect command lines silently fail.

Closes: #16435
2016-11-18 09:43:22 -05:00

4 lines
93 B
CMake

enable_language(C)
set(CMAKE_C_CLANG_TIDY "${PSEUDO_TIDY}" -bad)
add_executable(main main.c)