LANG_INCLUDE_WHAT_YOU_USE.rst 552 B

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