LANG_CPPCHECK.rst 491 B

12345678910111213
  1. <LANG>_CPPCHECK
  2. ---------------
  3. This property is supported only when ``<LANG>`` is ``C`` or ``CXX``.
  4. Specify a :ref:`;-list <CMake Language Lists>` containing a command line
  5. for the ``cppcheck`` static analysis tool. The :ref:`Makefile Generators`
  6. and the :generator:`Ninja` generator will run ``cppcheck`` along with the
  7. compiler and report any problems.
  8. This property is initialized by the value of the
  9. :variable:`CMAKE_<LANG>_CPPCHECK` variable if it is set when a target is
  10. created.