소스 검색

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 <[email protected]>
Marcus Müller 4 년 전
부모
커밋
35e38ef97a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/cmExportFileGenerator.cxx

+ 1 - 1
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 */