mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
AUTOGEN: Initializer: Enable SKIP_AUTOGEN on all AUTOGEN generated sources
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user