diff options
author | Marcus Müller <marcus@hostalia.de> | 2021-08-16 18:24:03 (GMT) |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2021-08-16 18:24:03 (GMT) |
commit | 35e38ef97a056e44926ad0991627a71b5d7ed2ce (patch) | |
tree | e8f22155ac2352c27ba321e11279bd41968360f0 /Source | |
parent | 0aa514297e251c9c9f9cf9ad3dad5f74fd7798f3 (diff) | |
download | CMake-35e38ef97a056e44926ad0991627a71b5d7ed2ce.zip CMake-35e38ef97a056e44926ad0991627a71b5d7ed2ce.tar.gz CMake-35e38ef97a056e44926ad0991627a71b5d7ed2ce.tar.bz2 |
Config File Gen: When requiring >= 2.6, don't check < 2.5
This seems to be a clear-cut case.
Signed-off-by: Marcus Müller <marcus@hostalia.de>
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 */ |