Browse Source

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.
Brad King 2 years ago
parent
commit
ee80960f78
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmExportFileGenerator.cxx

+ 2 - 2
Source/cmExportFileGenerator.cxx

@@ -955,13 +955,13 @@ void cmExportFileGenerator::GeneratePolicyHeaderCode(std::ostream& os)
 
 
   // Isolate the file policy level.
   // Isolate the file policy level.
   // Support CMake versions as far back as 2.6 but also support using NEW
   // 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
   // and increased from time to time). This reduces the opportunity for CMake
   // warnings when an older export file is later used with newer CMake
   // warnings when an older export file is later used with newer CMake
   // versions.
   // versions.
   /* clang-format off */
   /* clang-format off */
   os << "cmake_policy(PUSH)\n"
   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 */
   /* clang-format on */
 }
 }