mirror of
https://github.com/reactos/CMake.git
synced 2025-01-23 20:25:34 +00:00
Help: Document error behavior of file(REMOVE/REMOVE_RECURSE)
Clarifies that there is no need to surround file(REMOVE/REMOVE_RECURSE) calls by `if(EXISTS)` as non existent files are silently ignored.
This commit is contained in:
parent
77e78af1a2
commit
311d0376e2
@ -153,7 +153,8 @@ Move a file or directory within a filesystem from ``<oldname>`` to
|
|||||||
file(REMOVE_RECURSE [<files>...])
|
file(REMOVE_RECURSE [<files>...])
|
||||||
|
|
||||||
Remove the given files. The ``REMOVE_RECURSE`` mode will remove the given
|
Remove the given files. The ``REMOVE_RECURSE`` mode will remove the given
|
||||||
files and directories, also non-empty directories
|
files and directories, also non-empty directories. No error is emitted if a
|
||||||
|
given file does not exist.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user