mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -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
318 B
CMake
8 lines
318 B
CMake
enable_language(C)
|
|
set(CMAKE_C_INCLUDE_WHAT_YOU_USE "${PSEUDO_IWYU}" -some -args)
|
|
set(CMAKE_C_CLANG_TIDY "${PSEUDO_TIDY}" -bad)
|
|
set(CMAKE_C_CPPLINT "${PSEUDO_CPPLINT}" --error)
|
|
set(CMAKE_C_CPPCHECK "${PSEUDO_CPPCHECK}" -error)
|
|
add_executable(main main.c)
|
|
set_source_files_properties(main.c PROPERTIES SKIP_LINTING ON)
|