mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
AUTOGEN: Initializer: Enable SKIP_AUTOGEN on all AUTOGEN generated sources
This commit is contained in:
parent
32d3540e09
commit
d9313a8290
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user