LANG_CPPCHECK.rst 658 B

1234567891011121314151617
  1. <LANG>_CPPCHECK
  2. ---------------
  3. .. versionadded:: 3.10
  4. This property is supported only when ``<LANG>`` is ``C`` or ``CXX``.
  5. Specify a :ref:`semicolon-separated list <CMake Language Lists>` containing a command line
  6. for the ``cppcheck`` static analysis tool. The :ref:`Makefile Generators`
  7. and the :generator:`Ninja` generator will run ``cppcheck`` along with the
  8. compiler and report any problems. If the command-line specifies the
  9. exit code options to ``cppcheck`` then the build will fail if the
  10. tool returns non-zero.
  11. This property is initialized by the value of the
  12. :variable:`CMAKE_<LANG>_CPPCHECK` variable if it is set when a target is
  13. created.