summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalData.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-03-02 20:05:32 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-03-11 13:43:30 (GMT)
commit01cc8bf93084d91d0a1e2258a3b7307ef5ec5852 (patch)
tree30abd85d10923ae2457c3add9860b5267f5917ab /Modules/ExternalData.cmake
parent2da1a8f92d621ac698c0c5610cea46958b43ea48 (diff)
downloadCMake-01cc8bf93084d91d0a1e2258a3b7307ef5ec5852.zip
CMake-01cc8bf93084d91d0a1e2258a3b7307ef5ec5852.tar.gz
CMake-01cc8bf93084d91d0a1e2258a3b7307ef5ec5852.tar.bz2
ExternalData: use `file(COPY_FILE)` instead of forking CMake
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 b439636..032e423 100644
--- a/Modules/ExternalData.cmake
+++ b/Modules/ExternalData.cmake
@@ -944,7 +944,7 @@ function(_ExternalData_link_or_copy src dst)
execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink "${tgt}" "${tmp}" RESULT_VARIABLE result)
else()
# Create a copy.
- execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${src}" "${tmp}" RESULT_VARIABLE result)
+ file(COPY_FILE "${src}" "${tmp}" RESULT result)
endif()
if(result)
file(REMOVE "${tmp}")