summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalData.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-18 14:40:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-11-18 14:40:13 (GMT)
commit43918087123d5ec5b6df3b7cb56c123a7adc5b90 (patch)
tree71066a7024010ff4da3ac7da033ecb3b3ae65106 /Modules/ExternalData.cmake
parent0784261a6808989bd9fed9f7f30ac5ac00be8bf6 (diff)
parentd34986036fdc0dfa85a2d85a4fe5bce0368b1187 (diff)
downloadCMake-43918087123d5ec5b6df3b7cb56c123a7adc5b90.zip
CMake-43918087123d5ec5b6df3b7cb56c123a7adc5b90.tar.gz
CMake-43918087123d5ec5b6df3b7cb56c123a7adc5b90.tar.bz2
Merge topic 'file-COPY_FILE-retry'
d34986036f ExternalData: Improve robustness on Windows to copy a data object to a file efa9eec040 file(COPY_FILE): Add option to retry on Windows if input access fails fa518188d8 cmSystemTools: Remove unused CopySingleFile overload Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7934
Diffstat (limited to 'Modules/ExternalData.cmake')
-rw-r--r--Modules/ExternalData.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalData.cmake b/Modules/ExternalData.cmake
index 189374b..6826c7b 100644
--- a/Modules/ExternalData.cmake
+++ b/Modules/ExternalData.cmake
@@ -945,7 +945,7 @@ function(_ExternalData_link_or_copy src dst)
file(CREATE_LINK "${tgt}" "${tmp}" RESULT result COPY_ON_ERROR SYMBOLIC)
else()
# Create a copy.
- file(COPY_FILE "${src}" "${tmp}" RESULT result)
+ file(COPY_FILE "${src}" "${tmp}" RESULT result INPUT_MAY_BE_RECENT)
endif()
if(result)
file(REMOVE "${tmp}")