[CMake] Using clang-tidy with cmake 3.6.0

Theodoros Theodoridis theodoridisgr at gmail.com
Wed Jul 20 09:02:04 EDT 2016


Hello everyone,

I am trying to use the new <LANG>_CLANG_TIDY property but I can't figure
out the proper syntax. How can I specify the checks I want?

I tried setting the checks in set_target_properties(target PROPERTIES
CXX_CLANG_TIDY "checks to be performed") but cmake would complain with
"wrong number of arguments".

I would appreciate any help.

Thanks,
Theodor



More information about the CMake mailing list