diff options
author | Brad King <brad.king@kitware.com> | 2023-06-07 17:44:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-06-07 18:32:03 (GMT) |
commit | ee80960f786e85c69a6f40b5299549149d9fc7df (patch) | |
tree | fd7276718d8ffdec815ea9689e3d9624a5e379d5 /Source/cmExportFileGenerator.cxx | |
parent | 9ba9b6c658dd086129687e0345e5968b60051ca7 (diff) | |
download | CMake-ee80960f786e85c69a6f40b5299549149d9fc7df.zip CMake-ee80960f786e85c69a6f40b5299549149d9fc7df.tar.gz CMake-ee80960f786e85c69a6f40b5299549149d9fc7df.tar.bz2 |
export: Increase maximum policy version in exported files to 3.26
The files generatd by `install(EXPORT)` and `export()` commands
are known to work with policies as of CMake 3.26, so enable them
in sufficiently new CMake versions.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 22276ae..9176d12 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -955,13 +955,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.25 (this upper limit may be reviewed + // policy settings for up to CMake 3.26 (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.25)\n"; + << "cmake_policy(VERSION 2.8.3...3.26)\n"; /* clang-format on */ } |