mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00
file(CREATE_LINK): Document COPY_ON_ERROR
behavior on directories
Issue: #27294
This commit is contained in:

committed by
Brad King

parent
10556731a1
commit
657e9be724
@@ -616,7 +616,9 @@ Filesystem
|
|||||||
emitted.
|
emitted.
|
||||||
|
|
||||||
Specifying ``COPY_ON_ERROR`` enables copying the file as a fallback if
|
Specifying ``COPY_ON_ERROR`` enables copying the file as a fallback if
|
||||||
creating the link fails. It can be useful for handling situations such as
|
creating the link fails. If the source is a directory, the destination
|
||||||
|
directory will be created if it does not exist, but no files will be copied
|
||||||
|
the from source one. It can be useful for handling situations such as
|
||||||
``<original>`` and ``<linkname>`` being on different drives or mount points,
|
``<original>`` and ``<linkname>`` being on different drives or mount points,
|
||||||
which would make them unable to support a hard link.
|
which would make them unable to support a hard link.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user