diff options
author | Brad King <brad.king@kitware.com> | 2016-11-17 16:36:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-18 14:43:22 (GMT) |
commit | 80ebc55a7ce934ee357c30713bcb96b209e97963 (patch) | |
tree | d57f5b3f499669d4d0290a09e7f4a535e7933a9c /Tests/RunCMake/ClangTidy/C-bad.cmake | |
parent | ce1abfa4149ae0b3920626bef2dd15e8ee8b1940 (diff) | |
download | CMake-80ebc55a7ce934ee357c30713bcb96b209e97963.zip CMake-80ebc55a7ce934ee357c30713bcb96b209e97963.tar.gz CMake-80ebc55a7ce934ee357c30713bcb96b209e97963.tar.bz2 |
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
Diffstat (limited to 'Tests/RunCMake/ClangTidy/C-bad.cmake')
-rw-r--r-- | Tests/RunCMake/ClangTidy/C-bad.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/ClangTidy/C-bad.cmake b/Tests/RunCMake/ClangTidy/C-bad.cmake new file mode 100644 index 0000000..aa54c08 --- /dev/null +++ b/Tests/RunCMake/ClangTidy/C-bad.cmake @@ -0,0 +1,3 @@ +enable_language(C) +set(CMAKE_C_CLANG_TIDY "${PSEUDO_TIDY}" -bad) +add_executable(main main.c) |