Thank you, I will try this.


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



________________________________
From: Brad King <brad.k...@kitware.com>
Sent: Thursday, March 29, 2018 2:46:32 PM
To: Michal Wozniak
Cc: cmake-developers@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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers

Reply via email to