mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 10:39:28 -05:00
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>
This commit is contained in:
@@ -917,7 +917,7 @@ void cmExportFileGenerator::GeneratePolicyHeaderCode(std::ostream& os)
|
|||||||
// Protect that file against use with older CMake versions.
|
// Protect that file against use with older CMake versions.
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
os << "# Generated by CMake\n\n";
|
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"
|
<< " message(FATAL_ERROR \"CMake >= 2.6.0 required\")\n"
|
||||||
<< "endif()\n";
|
<< "endif()\n";
|
||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
|
|||||||
Reference in New Issue
Block a user