diff options
author | Brad King <brad.king@kitware.com> | 2022-10-12 16:41:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-12 16:41:25 (GMT) |
commit | 6bd18eed8e81a1e63f5cedc4c3caeb02137e0cd6 (patch) | |
tree | ee41234824c66d72d61af789bfbc61693e613521 /Source/cmExportFileGenerator.cxx | |
parent | c0e8bb5150b98a8003181b32396d0f3609bc6fce (diff) | |
download | CMake-6bd18eed8e81a1e63f5cedc4c3caeb02137e0cd6.zip CMake-6bd18eed8e81a1e63f5cedc4c3caeb02137e0cd6.tar.gz CMake-6bd18eed8e81a1e63f5cedc4c3caeb02137e0cd6.tar.bz2 |
export: Increase maximum policy version in exported files to 3.24
The files generatd by `install(EXPORT)` and `export()` commands
are known to work with policies as of CMake 3.24, 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 50bc78c..2c61163 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -939,13 +939,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.23 (this upper limit may be reviewed + // policy settings for up to CMake 3.24 (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.23)\n"; + << "cmake_policy(VERSION 2.8.3...3.24)\n"; /* clang-format on */ } |