浏览代码

Autogen: Add hint to SKIP_AUTOMOC in error message

Closes #15751
Sebastian Holtermann 8 年之前
父节点
当前提交
62a1e292f2
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmQtAutoGenerators.cxx

+ 3 - 1
Source/cmQtAutoGenerators.cxx

@@ -1022,7 +1022,9 @@ bool cmQtAutoGenerators::MocParseSourceContent(
       ost << "AutoMoc: Error: " << Quoted(absFilename) << "\n"
           << "The file contains a " << macroName
           << " macro, but does not include "
-          << Quoted(scannedFileBasename + ".moc") << "!";
+          << Quoted(scannedFileBasename + ".moc") << "!\n"
+          << "Consider adding the include or enabling SKIP_AUTOMOC for this "
+             "file.";
       this->LogError(ost.str());
       return false;
     }