CXX_CLANG_TIDY does not report when clang-tidy returns an error
I've noticed that CXX_CLANG_TIDY
doesn't work correctly if I specify several arguments that contain the '*' symbol. Here's an example:
set_property(
TARGET ${PROJECT_NAME}
PROPERTY CXX_CLANG_TIDY clang-tidy;-checks=*;-warnings-as-errors=*)
Building a target with this property produces no output. It seems like clang-tidy doesn't get called. However, if I remove -warnings-as-errors, everything works fine.
The issue can also be reproduced with -header-filter and probably other options that take globs as arguments.
This makes CXX_CLANG_TIDY
unusable for all integration scenarios except the most simple ones.
The issue was previously reported here: