summaryrefslogtreecommitdiff
path: root/Modules/ExternalData.cmake
diff options
context:
space:
mode:
authorShane Parris <shane.lee.parris@gmail.com>2018-01-26 13:42:44 -0500
committerShane Parris <shane.lee.parris@gmail.com>2018-02-15 10:54:38 -0500
commite78e24f68cba269117ad5a321e1ec8503a5f1d29 (patch)
tree7a2206e8e485f0a10561ba7c16e251132811dd9c /Modules/ExternalData.cmake
parent602988e1e568048dd30e9e2213bc788f7c7ff708 (diff)
downloadcmake-e78e24f68cba269117ad5a321e1ec8503a5f1d29.tar.gz
Replaces execute_process calls to touch files with file(TOUCH) calls
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 7331fb2b4b..e5dbcd9639 100644
--- a/Modules/ExternalData.cmake
+++ b/Modules/ExternalData.cmake
@@ -1133,7 +1133,7 @@ if("${ExternalData_ACTION}" STREQUAL "fetch")
if(file_up_to_date)
# Touch the file to convince the build system it is up to date.
- execute_process(COMMAND "${CMAKE_COMMAND}" -E touch "${file}")
+ file(TOUCH "${file}")
else()
_ExternalData_link_or_copy("${obj}" "${file}")
endif()