ADDITIONAL_CLEAN_FILES.rst 898 B

123456789101112131415161718192021
  1. ADDITIONAL_CLEAN_FILES
  2. ----------------------
  3. A :ref:`;-list <CMake Language Lists>` of files or directories that will be
  4. removed as a part of the global ``clean`` target. It is useful for
  5. specifying generated files or directories that are used by multiple targets
  6. or by CMake itself, or that are generated in ways which cannot be captured as
  7. outputs or byproducts of custom commands.
  8. If an additional clean file is specific to a single target only, then the
  9. :prop_tgt:`ADDITIONAL_CLEAN_FILES` target property would usually be a better
  10. choice than this directory property.
  11. Relative paths are allowed and are interpreted relative to the
  12. current binary directory.
  13. Contents of ``ADDITIONAL_CLEAN_FILES`` may use
  14. :manual:`generator expressions <cmake-generator-expressions(7)>`.
  15. This property only works for the :generator:`Ninja` and the Makefile
  16. generators. It is ignored by other generators.