summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-01 19:37:31 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-01 22:01:38 (GMT)
commit4feea27761f2580bf2ceacbc84ae28ff819f05cc (patch)
tree25f8a63003c7f42d90daf1aad508982846ab024c /Source/cmExportFileGenerator.cxx
parent1ff14d584c8c8c45b2b0cc7ddfbaf908e10acb95 (diff)
downloadCMake-4feea27761f2580bf2ceacbc84ae28ff819f05cc.zip
CMake-4feea27761f2580bf2ceacbc84ae28ff819f05cc.tar.gz
CMake-4feea27761f2580bf2ceacbc84ae28ff819f05cc.tar.bz2
export: Increase maximum policy version in exported files to 3.25
The files generatd by `install(EXPORT)` and `export()` commands are known to work with policies as of CMake 3.25, so enable them in sufficiently new CMake versions.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r--Source/cmExportFileGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index c8e2cb8..7f1afba 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -938,13 +938,13 @@ void cmExportFileGenerator::GeneratePolicyHeaderCode(std::ostream& os)
// Isolate the file policy level.
// Support CMake versions as far back as 2.6 but also support using NEW
- // policy settings for up to CMake 3.24 (this upper limit may be reviewed
+ // policy settings for up to CMake 3.25 (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.
/* clang-format off */
os << "cmake_policy(PUSH)\n"
- << "cmake_policy(VERSION 2.8.3...3.24)\n";
+ << "cmake_policy(VERSION 2.8.3...3.25)\n";
/* clang-format on */
}