diff options
author | Brad King <brad.king@kitware.com> | 2021-08-19 14:29:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-08-19 14:29:39 (GMT) |
commit | a82092f4a2c8f52e6710133c6351c37a976a8ccc (patch) | |
tree | 31cbb9d7371809b35c4752a6822132d2aee03bf5 /Source | |
parent | ca1f5d5b9e3716d2687b772cead55adde3adfbf7 (diff) | |
parent | 35e38ef97a056e44926ad0991627a71b5d7ed2ce (diff) | |
download | CMake-a82092f4a2c8f52e6710133c6351c37a976a8ccc.zip CMake-a82092f4a2c8f52e6710133c6351c37a976a8ccc.tar.gz CMake-a82092f4a2c8f52e6710133c6351c37a976a8ccc.tar.bz2 |
Merge topic 'fix_2.6_check'
35e38ef97a Config File Gen: When requiring >= 2.6, don't check < 2.5
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !6456
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index ebdbe38..8b06a15 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -917,7 +917,7 @@ void cmExportFileGenerator::GeneratePolicyHeaderCode(std::ostream& os) // Protect that file against use with older CMake versions. /* clang-format off */ os << "# Generated by CMake\n\n"; - os << "if(\"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}\" LESS 2.5)\n" + os << "if(\"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}\" LESS 2.6)\n" << " message(FATAL_ERROR \"CMake >= 2.6.0 required\")\n" << "endif()\n"; /* clang-format on */ |