summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-02-22 19:16:44 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-02-23 13:14:29 (GMT)
commit62a1e292f29d740d0b193e45f0acd37f7ffaced6 (patch)
tree8265023ca2f9eaf1f744fb2d320219b814e32181 /Source/cmQtAutoGenerators.cxx
parente98465cfed68f6511af552ac8ab0d168791f4302 (diff)
downloadCMake-62a1e292f29d740d0b193e45f0acd37f7ffaced6.zip
CMake-62a1e292f29d740d0b193e45f0acd37f7ffaced6.tar.gz
CMake-62a1e292f29d740d0b193e45f0acd37f7ffaced6.tar.bz2
Autogen: Add hint to SKIP_AUTOMOC in error message
Closes #15751
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index 8d65129..e7e456a 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/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;
}