AUTOGEN: Initializer: Enable SKIP_AUTOGEN on all AUTOGEN generated sources

This commit is contained in:
Sebastian Holtermann 2016-12-28 12:15:11 +01:00
parent 32d3540e09
commit d9313a8290

View File

@ -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);