diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-03-02 20:05:32 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-03-11 13:43:30 (GMT) |
commit | 01cc8bf93084d91d0a1e2258a3b7307ef5ec5852 (patch) | |
tree | 30abd85d10923ae2457c3add9860b5267f5917ab /Modules/ExternalData.cmake | |
parent | 2da1a8f92d621ac698c0c5610cea46958b43ea48 (diff) | |
download | CMake-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.cmake | 2 |
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}") |