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

Michal Wozniak michal.wozniak at caboma.com
Thu Mar 29 15:20:49 EDT 2018


Thank you, I will try this.



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



________________________________
From: Brad King <brad.king at kitware.com>
Sent: Thursday, March 29, 2018 2:46:32 PM
To: Michal Wozniak
Cc: cmake-developers at cmake.org
Subject: Re: [cmake-developers] clang-tidy third party library exclude ?

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20180329/b02ec2b5/attachment.html>


More information about the cmake-developers mailing list