summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorInitializer.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-28 11:15:11 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-01-10 11:49:15 (GMT)
commitd9313a82906ced0ff3c76828e86d9d7a248a5e49 (patch)
treec1246b99a057ca90a93326270768e15648eda323 /Source/cmQtAutoGeneratorInitializer.cxx
parent32d3540e090c4a24d55b99c49c094a9cb574c9b3 (diff)
downloadCMake-d9313a82906ced0ff3c76828e86d9d7a248a5e49.zip
CMake-d9313a82906ced0ff3c76828e86d9d7a248a5e49.tar.gz
CMake-d9313a82906ced0ff3c76828e86d9d7a248a5e49.tar.bz2
AUTOGEN: Initializer: Enable SKIP_AUTOGEN on all AUTOGEN generated sources
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r--Source/cmQtAutoGeneratorInitializer.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index de0c212..b74fbf3 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -646,7 +646,8 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenSources(
cmMakefile* makefile = target->Target->GetMakefile();
const std::string mocCppFile =
GetAutogenTargetBuildDir(target) + "moc_compilation.cpp";
- makefile->GetOrCreateSource(mocCppFile, true);
+ cmSourceFile* gf = makefile->GetOrCreateSource(mocCppFile, true);
+ gf->SetProperty("SKIP_AUTOGEN", "On");
target->AddSource(mocCppFile);
}
}
@@ -778,7 +779,8 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget(
rccOutputFile += ".cpp";
// Add rcc output file to origin target sources
- makefile->GetOrCreateSource(rccOutputFile, true);
+ cmSourceFile* gf = makefile->GetOrCreateSource(rccOutputFile, true);
+ gf->SetProperty("SKIP_AUTOGEN", "On");
target->AddSource(rccOutputFile);
// Register rcc output file as generated
autogenOutputFiles.push_back(rccOutputFile);