Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ foreach(directoryName IN ITEMS ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_I
endforeach()

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

set(policy_old CMP0116 CMP0135 CMP0144)
set(policy_old CMP0116)
foreach(policy ${policy_old})
if(POLICY ${policy})
cmake_policy(SET ${policy} OLD)
Expand Down
Loading