diff options
author | Kasper Laudrup <you@example.com> | 2022-04-01 18:18:33 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-05-04 23:01:54 (GMT) |
commit | a283e58b51e55bc843c8d341bf0f8bc91f2f9ef1 (patch) | |
tree | 1044c82c2bae6115ebe0fc32f6b6cfac77312f12 /Source/cmPolicies.h | |
parent | e0dbca93aae6b01f8b239d346a0bc99d2ca2473e (diff) | |
download | CMake-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 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index 8739c55..7d06607 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -404,6 +404,10 @@ class cmMakefile; SELECT(POLICY, CMP0134, \ "Fallback to \"HOST\" Windows registry view when \"TARGET\" view " \ "is not usable.", \ + 3, 24, 0, cmPolicies::WARN) \ + SELECT(POLICY, CMP0135, \ + "ExternalProject ignores timestamps in archives by default for the " \ + "URL download method", \ 3, 24, 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) |