summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject
diff options
context:
space:
mode:
authorKasper Laudrup <you@example.com>2022-04-01 18:18:33 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-05-04 23:01:54 (GMT)
commita283e58b51e55bc843c8d341bf0f8bc91f2f9ef1 (patch)
tree1044c82c2bae6115ebe0fc32f6b6cfac77312f12 /Modules/ExternalProject
parente0dbca93aae6b01f8b239d346a0bc99d2ca2473e (diff)
downloadCMake-a283e58b51e55bc843c8d341bf0f8bc91f2f9ef1.zip
CMake-a283e58b51e55bc843c8d341bf0f8bc91f2f9ef1.tar.gz
CMake-a283e58b51e55bc843c8d341bf0f8bc91f2f9ef1.tar.bz2
ExternalProject: Add DOWNLOAD_EXTRACT_TIMESTAMP option and policy
Add the option to keep the current filestamps when extracting an archive in ExternalProject_Add. Enabling this option makes the behavior consistent with how ExternalProject_Add is used when checking out code from revision control instead of an archive. Fixes: #22746
Diffstat (limited to 'Modules/ExternalProject')
-rw-r--r--Modules/ExternalProject/extractfile.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject/extractfile.cmake.in b/Modules/ExternalProject/extractfile.cmake.in
index d7f5756..984565b 100644
--- a/Modules/ExternalProject/extractfile.cmake.in
+++ b/Modules/ExternalProject/extractfile.cmake.in
@@ -29,7 +29,7 @@ file(MAKE_DIRECTORY "${ut_dir}")
# Extract it:
#
message(STATUS "extracting... [tar @args@]")
-execute_process(COMMAND ${CMAKE_COMMAND} -E tar @args@ ${filename}
+execute_process(COMMAND ${CMAKE_COMMAND} -E tar @args@ ${filename} @options@
WORKING_DIRECTORY ${ut_dir}
RESULT_VARIABLE rv
)