Просмотр исходного кода

BUG: No need for the backward compatibility variable warning

Andy Cedilnik 19 лет назад
Родитель
Сommit
0b92b2faf5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Source/cmConfigureFileCommand.cxx

+ 2 - 2
Source/cmConfigureFileCommand.cxx

@@ -44,8 +44,8 @@ bool cmConfigureFileCommand::InitialPass(std::vector<std::string> const& args)
   // after 2.0 it only does InitialPass
   this->Immediate = false;
   const char* versionValue
-    = this->Makefile->GetRequiredDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
-  if (atof(versionValue) > 2.0)
+    = this->Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
+  if (versionValue && atof(versionValue) > 2.0)
     {
     this->Immediate = true;
     }