diff options
author | Brad King <brad.king@kitware.com> | 2022-06-14 18:47:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-06-14 19:05:09 (GMT) |
commit | 25b1312a6d739b0716a2317e9d84bb182f6463d2 (patch) | |
tree | 8a833314b92f51747cefdec73b01fcb7aa4b78d0 /Source/cmExportFileGenerator.cxx | |
parent | 5c8b776ca3f7681aa1d2b54d4f3a0d8ed325bca0 (diff) | |
download | CMake-25b1312a6d739b0716a2317e9d84bb182f6463d2.zip CMake-25b1312a6d739b0716a2317e9d84bb182f6463d2.tar.gz CMake-25b1312a6d739b0716a2317e9d84bb182f6463d2.tar.bz2 |
export: Increase maximum policy version in exported files to 3.23
The files generatd by `install(EXPORT)` and `export()` commands
are known to work with policies as of CMake 3.23, 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 452eb99..c4cffa2 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -932,13 +932,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.22 (this upper limit may be reviewed + // policy settings for up to CMake 3.23 (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.22)\n"; + << "cmake_policy(VERSION 2.8.3...3.23)\n"; /* clang-format on */ } |