cmMakefile: Simplify generate-time cmGeneratorTarget creation.

This commit is contained in:
Stephen Kelly authored and Brad King committed 2015-07-29 10:43:33 -04:00
1 parent 2e94cba356
commit 610572b7d2
2 files changed
+1 -1

No files matched your search

+1
View File
@@ -1909,6 +1909,7 @@ const char* cmMakefile::GetCurrentBinaryDirectory() const
void cmMakefile::AddGeneratorTarget(cmTarget* t, cmGeneratorTarget* gt)
{
this->GeneratorTargets[t] = gt;
this->GetGlobalGenerator()->AddGeneratorTarget(t, gt);
}
//----------------------------------------------------------------------------
-1
View File
@@ -476,7 +476,6 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmLocalGenerator* lg,
commandLines, false, autogenComment.c_str());
cmGeneratorTarget* gt = new cmGeneratorTarget(autogenTarget, lg);
lg->GetGlobalGenerator()->AddGeneratorTarget(autogenTarget, gt);
makefile->AddGeneratorTarget(autogenTarget, gt);
// Set target folder