mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
b480315e0c
The `SKIP_LINTING` source property was added to disable code check for desired source files. The `SKIP_LINTING`includes `cpplint`, `clang-tidy`, \ `cppcheck` and `include-what-you-use`. If `SKIP_LINTING` is set on a source file, the tools mentioned above will not be run on that source file.
8 lines
353 B
CMake
8 lines
353 B
CMake
enable_language(CXX)
|
|
set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE "$<1:${PSEUDO_IWYU}>" -some -args)
|
|
set(CMAKE_CXX_CLANG_TIDY "$<1:${PSEUDO_TIDY}>" -bad)
|
|
set(CMAKE_CXX_CPPLINT "$<1:${PSEUDO_CPPLINT}>" --error)
|
|
set(CMAKE_CXX_CPPCHECK "$<1:${PSEUDO_CPPCHECK}>" -error)
|
|
add_executable(main main.cxx)
|
|
set_source_files_properties(main.cxx PROPERTIES SKIP_LINTING OFF)
|