diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-06-05 14:26:27 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2019-06-07 11:10:19 (GMT) |
commit | e61074c67226e3def13e75173e3b8bbdb1c3df2d (patch) | |
tree | 12751d884005e3afe5e47402aea33589d09a251b /Help/prop_dir | |
parent | cebccdebaf12adc83c50f418c51b2d6b989d5350 (diff) | |
download | CMake-e61074c67226e3def13e75173e3b8bbdb1c3df2d.zip CMake-e61074c67226e3def13e75173e3b8bbdb1c3df2d.tar.gz CMake-e61074c67226e3def13e75173e3b8bbdb1c3df2d.tar.bz2 |
Help: Improve ADDITIONAL_CLEAN_FILES documentation
Extend the `ADDITIONAL_CLEAN_FILES' target and directory property
documentation.
Fixes: #19341
Diffstat (limited to 'Help/prop_dir')
-rw-r--r-- | Help/prop_dir/ADDITIONAL_CLEAN_FILES.rst | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Help/prop_dir/ADDITIONAL_CLEAN_FILES.rst b/Help/prop_dir/ADDITIONAL_CLEAN_FILES.rst index 54a78ef..051d22a 100644 --- a/Help/prop_dir/ADDITIONAL_CLEAN_FILES.rst +++ b/Help/prop_dir/ADDITIONAL_CLEAN_FILES.rst @@ -1,16 +1,21 @@ ADDITIONAL_CLEAN_FILES ---------------------- -Additional files to remove during the clean stage. +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. -A :ref:`;-list <CMake Language Lists>` of files that will be removed as a -part of the ``clean`` target. +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. Relative paths are allowed and are interpreted relative to the current binary directory. -Arguments to :prop_dir:`ADDITIONAL_CLEAN_FILES` may use +Contents of ``ADDITIONAL_CLEAN_FILES`` may use :manual:`generator expressions <cmake-generator-expressions(7)>`. This property only works for the :generator:`Ninja` and the Makefile -generators. It is ignored on other generators. +generators. It is ignored by other generators. |