File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ else()
26
26
# `git config clangFormat.binary /path/to/clang-format`.
27
27
endif ()
28
28
29
+ # Set the timestamps of the extracted files to their archived
30
+ # timestamps.
31
+ if (${CMAKE_VERSION} VERSION_LESS 3.24 )
32
+ set (download_extract_timestamp_flag )
33
+ else ()
34
+ set (download_extract_timestamp_flag DOWNLOAD_EXTRACT_TIMESTAMP TRUE )
35
+ endif ()
36
+
29
37
if (NOT TARGET ClangFormat AND _clang_format_hash )
30
38
ExternalProject_add (ClangFormat
31
39
URL ${_clang_format_url}
@@ -39,5 +47,6 @@ if(NOT TARGET ClangFormat AND _clang_format_hash)
39
47
LOG_TEST 0
40
48
LOG_INSTALL 0
41
49
INSTALL_COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR} /ITKClangFormatConfig.cmake
50
+ ${download_extract_timestamp_flag}
42
51
)
43
52
endif ()
You can’t perform that action at this time.
0 commit comments