Procházet zdrojové kódy

Autogen: A missing info file is a critical error

Sebastian Holtermann před 6 roky
rodič
revize
eff6e622d6
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      Source/cmQtAutoGenerator.cxx

+ 2 - 1
Source/cmQtAutoGenerator.cxx

@@ -279,10 +279,11 @@ bool cmQtAutoGenerator::Run(std::string const& infoFile,
   InfoFile_ = infoFile;
   cmSystemTools::ConvertToUnixSlashes(InfoFile_);
   if (!InfoFileTime_.Load(InfoFile_)) {
-    std::string msg = "Autogen: The info file ";
+    std::string msg = "AutoGen: The info file ";
     msg += Quoted(InfoFile_);
     msg += " is not readable\n";
     cmSystemTools::Stderr(msg);
+    return false;
   }
   InfoDir_ = cmSystemTools::GetFilenamePath(infoFile);
   InfoConfig_ = config;