summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-30 13:07:22 -0400
committerBrad King <brad.king@kitware.com>2017-07-05 09:42:15 -0400
commitef31812ede6ca1eafd8723e8478e533deadfc4f0 (patch)
treed450df1960cbe36a0c986bd6fcc07c3129f69548
parent2086003145b92b2f7b7d364aa0bba69c55997b73 (diff)
parent83d8aceeb35d2a378777a35fea1fb7d7c2d76362 (diff)
downloadcmake-ef31812ede6ca1eafd8723e8478e533deadfc4f0.tar.gz
Merge branch 'autogen-header-skip' into release-3.9
-rw-r--r--Source/cmQtAutoGenerators.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index 27e492834e..6d3305b098 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -1003,7 +1003,7 @@ bool cmQtAutoGenerators::MocParseSourceContent(
// In relaxed mode try to find a header instead but issue a warning
const std::string headerToMoc =
this->MocFindHeader(scannedFileAbsPath, incSubDir + incBasename);
- if (!headerToMoc.empty()) {
+ if (!headerToMoc.empty() && !this->MocSkip(headerToMoc)) {
// This is for KDE4 compatibility:
fileToMoc = headerToMoc;
if (!requiresMoc && (incBasename == scannedFileBasename)) {