From 62a1e292f29d740d0b193e45f0acd37f7ffaced6 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Wed, 22 Feb 2017 20:16:44 +0100 Subject: Autogen: Add hint to SKIP_AUTOMOC in error message Closes #15751 --- Source/cmQtAutoGenerators.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v0.12