Преглед на файлове

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;
     }