1
0
Эх сурвалжийг харах

Autogen: Add hint to SKIP_AUTOMOC in error message

Closes #15751
Sebastian Holtermann 8 жил өмнө
parent
commit
62a1e292f2

+ 3 - 1
Source/cmQtAutoGenerators.cxx

@@ -1022,7 +1022,9 @@ bool cmQtAutoGenerators::MocParseSourceContent(
       ost << "AutoMoc: Error: " << Quoted(absFilename) << "\n"
       ost << "AutoMoc: Error: " << Quoted(absFilename) << "\n"
           << "The file contains a " << macroName
           << "The file contains a " << macroName
           << " macro, but does not include "
           << " 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());
       this->LogError(ost.str());
       return false;
       return false;
     }
     }