瀏覽代碼

Autogen: Don't list all search paths in error message

Sebastian Holtermann 8 年之前
父節點
當前提交
3270091210
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      Source/cmQtAutoGenerators.cxx

+ 1 - 7
Source/cmQtAutoGenerators.cxx

@@ -839,13 +839,7 @@ bool cmQtAutoGenerators::ParseContentForMoc(
           err << "AutoMoc: Error: " << absFilename << "\n"
               << "The file includes the moc file \"" << currentMoc
               << "\", but could not find header \"" << basename << '{'
-              << JoinExts(headerExtensions) << "}\" ";
-          if (mocSubDir.empty()) {
-            err << "in " << scannedFileAbsPath << "\n";
-          } else {
-            err << "neither in " << scannedFileAbsPath << " nor in "
-                << mocSubDir << "\n";
-          }
+              << JoinExts(headerExtensions) << "}\"\n";
           this->LogError(err.str());
           return false;
         }