export: Increase maximum policy version in exported files to 3.29

The files generated by `install(EXPORT)`, `export()`, and
`install_jar_exports()` commands are known to work with policies
as of CMake 3.29, so enable them in sufficiently new CMake versions.
This commit is contained in:
Brad King
2024-06-05 13:23:38 -04:00
parent 4394464501
commit ed376e470e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1009,7 +1009,7 @@ void cmExportFileGenerator::GeneratePolicyHeaderCode(std::ostream& os)
// Isolate the file policy level.
// Support CMake versions as far back as the
// RequiredCMakeVersion{Major,Minor,Patch}, but also support using NEW
// policy settings for up to CMake 3.28 (this upper limit may be reviewed
// policy settings for up to CMake 3.29 (this upper limit may be reviewed
// and increased from time to time). This reduces the opportunity for CMake
// warnings when an older export file is later used with newer CMake
// versions.
@@ -1018,7 +1018,7 @@ void cmExportFileGenerator::GeneratePolicyHeaderCode(std::ostream& os)
<< "cmake_policy(VERSION "
<< this->RequiredCMakeVersionMajor << '.'
<< this->RequiredCMakeVersionMinor << '.'
<< this->RequiredCMakeVersionPatch << "...3.28)\n";
<< this->RequiredCMakeVersionPatch << "...3.29)\n";
/* clang-format on */
}