[cmake-developers] clang-tidy third party library exclude ?

Brad King brad.king at kitware.com
Thu Mar 29 14:46:32 EDT 2018


On 03/29/2018 02:38 PM, Michal Wozniak wrote:
> I thought of adding clang-tiny to our build process.
> Is it possible to exclude third-party libraries?  

The variable used to activate it:

  https://cmake.org/cmake/help/v3.11/variable/CMAKE_LANG_CLANG_TIDY.html

works by initializing a property used to activate it:

  https://cmake.org/cmake/help/v3.11/prop_tgt/LANG_CLANG_TIDY.html

as each target is created.  If in the third-party subdirectory
you set the variable to empty then none of its targets will get
the behavior.

-Brad


More information about the cmake-developers mailing list