CMP0159 warnings in cmake's Modules when tracing
!9124 (merged) added a new policy that does not warn by default, unless tracing is enabled.
CMake's own Find modules contain many file(STRINGS)
calls which then show the policy warning when tracing is enabled in a user project.
I think all those need to be handled with blocks like
cmake_policy(PUSH)
if(POLICY CMP0159)
cmake_policy(SET CMP0159 NEW)
endif()
file(STRINGS ...)
cmake_policy(POP)
Edited by alcroito