summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-06-05 17:23:38 (GMT)
committerBrad King <brad.king@kitware.com>2024-06-05 17:23:38 (GMT)
commited376e470ea973cff05002fe07c7bd0c81039ee4 (patch)
tree21d3728dc1a4376587eb936117fcc4da05c281f2 /Source
parent43944645019a8241485950384e3e9dba48a27347 (diff)
downloadCMake-ed376e470ea973cff05002fe07c7bd0c81039ee4.zip
CMake-ed376e470ea973cff05002fe07c7bd0c81039ee4.tar.gz
CMake-ed376e470ea973cff05002fe07c7bd0c81039ee4.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportFileGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index a5348f2..afc571d 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -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 */
}