SKIP_LINTING
Added in version 4.2.
Exclude all sources of a target from running configured linting tools.
When this boolean property is enabled on a target, C/C++ linting tools enabled for that target (e.g. <LANG>_CPPLINT, <LANG>_CLANG_TIDY, <LANG>_CPPCHECK, <LANG>_ICSTAT and <LANG>_INCLUDE_WHAT_YOU_USE) will not be invoked for source files compiled by the target. If the SKIP_LINTING source-file property is set on a specific source or if the SKIP_LINTING file set property is set, it takes precedence over this target-wide property.
This is a convenience alternative to setting the SKIP_LINTING source file property individually on each source. If either the target's SKIP_LINTING or file set's SKIP_LINTING including this source or a source's SKIP_LINTING is enabled, that source will be excluded from linting.
The property has no effect on targets that do not have sources.
See Also
-
SKIP_LINTINGfile set property -
SKIP_LINTINGsource file property
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/prop_tgt/SKIP_LINTING.html