oranges_enable_cppcheck¶
include (OrangesCppcheck)
View the full docs for this module
.
oranges_enable_cppcheck (<target> [ENABLE <checks...>] [DISABLE <checks...>] [EXTRA_ARGS <args...>] [LANGS <C|CXX>...])
Configures cppcheck for the given <target>
by manipulating the target’s <LANG>_CPPCHECK
properties.
If the CPPCHECK_OFF
variable is set to ON
, this function does nothing.
Options:
ENABLE
A list of checks to enable for this target. If not specified, the value of the
CPPCHECK_ENABLE
variable will be used.DISABLE
A list of checks to disable for this target. If not specified, the value of the
CPPCHECK_DISABLE
variable will be used.EXTRA_ARGS
A list of extra arguments to pass to cppcheck verbatim. If not specified, the value of the
CPPCHECK_EXTRA_ARGS
variable will be used.LANGS
Languages for which to enable cppcheck. Valid values are
C
orCXX
. If no languages are specified, this function will configure cppcheck for both valid languages.