mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
cmMakefile: Simplify generate-time cmGeneratorTarget creation.
This commit is contained in:
@@ -1909,6 +1909,7 @@ const char* cmMakefile::GetCurrentBinaryDirectory() const
|
|||||||
void cmMakefile::AddGeneratorTarget(cmTarget* t, cmGeneratorTarget* gt)
|
void cmMakefile::AddGeneratorTarget(cmTarget* t, cmGeneratorTarget* gt)
|
||||||
{
|
{
|
||||||
this->GeneratorTargets[t] = gt;
|
this->GeneratorTargets[t] = gt;
|
||||||
|
this->GetGlobalGenerator()->AddGeneratorTarget(t, gt);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -476,7 +476,6 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmLocalGenerator* lg,
|
|||||||
commandLines, false, autogenComment.c_str());
|
commandLines, false, autogenComment.c_str());
|
||||||
|
|
||||||
cmGeneratorTarget* gt = new cmGeneratorTarget(autogenTarget, lg);
|
cmGeneratorTarget* gt = new cmGeneratorTarget(autogenTarget, lg);
|
||||||
lg->GetGlobalGenerator()->AddGeneratorTarget(autogenTarget, gt);
|
|
||||||
makefile->AddGeneratorTarget(autogenTarget, gt);
|
makefile->AddGeneratorTarget(autogenTarget, gt);
|
||||||
|
|
||||||
// Set target folder
|
// Set target folder
|
||||||
|
|||||||
Reference in New Issue
Block a user