Script files generated by cmake for cmake should use cmake_minimum_required(<CURRENT_VERSION>)
In a semantic sense, script files require the use of cmake_minimum_required
, but scripts rarely use it, and there is no warning.
CMake should generate scripts which do not rely on OLD versions of policies.
For example, CTestTestfile.cmake should not use the subdirs
command.
I have not checked generated cmake_install.cmake
files, but they should also be clean with cmake_minimum_required(<CURRENT_VERSION>)
as should any other script run with cmake -P
.