Skip to content

Commit c8dee94

Browse files
committed
[CMake] Update two CMake policies to NEW.
The two policies in question should not affect ROOT: - ROOT does not use <PACKAGENAME>_ROOT for purposes other than finding a package, so the NEW version of the policy is fine. - And it is preferable to update the timestamps of files extracted from an archive if the URL changes (NEW) as opposed to keeping the timestamps found in the archive (OLD).
1 parent c719f23 commit c8dee94

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ foreach(directoryName IN ITEMS ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_I
3232
endforeach()
3333

3434
set(policy_new CMP0072 CMP0076 CMP0077 CMP0079
35+
CMP0135 # Timestamps of downloaded archives are set to time of extraction
36+
CMP0144 # <PACKAGENAME>_ROOT (converted to upper case) can be used to search for dependencies
3537
CMP0156 CMP0179 #deduplicate static libraries when linker supports it
3638
)
3739
foreach(policy ${policy_new})
@@ -40,7 +42,7 @@ foreach(policy ${policy_new})
4042
endif()
4143
endforeach()
4244

43-
set(policy_old CMP0116 CMP0135 CMP0144)
45+
set(policy_old CMP0116)
4446
foreach(policy ${policy_old})
4547
if(POLICY ${policy})
4648
cmake_policy(SET ${policy} OLD)

0 commit comments

Comments
 (0)