ADDITIONAL_CLEAN_FILES.rst 898 Bytes
Newer Older
1 2 3
ADDITIONAL_CLEAN_FILES
----------------------

4 5 6 7 8
A :ref:`;-list <CMake Language Lists>` of files or directories that will be
removed as a part of the global ``clean`` target.  It is useful for
specifying generated files or directories that are used by multiple targets
or by CMake itself, or that are generated in ways which cannot be captured as
outputs or byproducts of custom commands.
9

10 11 12
If an additional clean file is specific to a single target only, then the
:prop_tgt:`ADDITIONAL_CLEAN_FILES` target property would usually be a better
choice than this directory property.
13 14 15 16

Relative paths are allowed and are interpreted relative to the
current binary directory.

17
Contents of ``ADDITIONAL_CLEAN_FILES`` may use
18 19 20
:manual:`generator expressions <cmake-generator-expressions(7)>`.

This property only works for the :generator:`Ninja` and the Makefile
21
generators.  It is ignored by other generators.