CMP0026: Port away from GetGeneratorTarget

This commit is contained in:
Stephen Kelly 2015-10-25 13:19:54 +01:00
parent 8caf1f361b
commit 0fb187cc58

View File

@ -1602,7 +1602,7 @@ const char *cmTarget::GetProperty(const std::string& prop,
// CMake time. // CMake time.
cmGlobalGenerator* gg = this->Makefile->GetGlobalGenerator(); cmGlobalGenerator* gg = this->Makefile->GetGlobalGenerator();
gg->CreateGenerationObjects(); gg->CreateGenerationObjects();
cmGeneratorTarget* gt = gg->GetGeneratorTarget(this); cmGeneratorTarget* gt = gg->FindGeneratorTarget(this->GetName());
this->Properties.SetProperty(propLOCATION, this->Properties.SetProperty(propLOCATION,
gt->GetLocationForBuild()); gt->GetLocationForBuild());
} }
@ -1627,7 +1627,7 @@ const char *cmTarget::GetProperty(const std::string& prop,
{ {
cmGlobalGenerator* gg = this->Makefile->GetGlobalGenerator(); cmGlobalGenerator* gg = this->Makefile->GetGlobalGenerator();
gg->CreateGenerationObjects(); gg->CreateGenerationObjects();
cmGeneratorTarget* gt = gg->GetGeneratorTarget(this); cmGeneratorTarget* gt = gg->FindGeneratorTarget(this->GetName());
this->Properties.SetProperty( this->Properties.SetProperty(
prop, gt->GetFullPath(configName, false).c_str()); prop, gt->GetFullPath(configName, false).c_str());
} }
@ -1651,7 +1651,7 @@ const char *cmTarget::GetProperty(const std::string& prop,
{ {
cmGlobalGenerator* gg = this->Makefile->GetGlobalGenerator(); cmGlobalGenerator* gg = this->Makefile->GetGlobalGenerator();
gg->CreateGenerationObjects(); gg->CreateGenerationObjects();
cmGeneratorTarget* gt = gg->GetGeneratorTarget(this); cmGeneratorTarget* gt = gg->FindGeneratorTarget(this->GetName());
this->Properties.SetProperty( this->Properties.SetProperty(
prop, gt->GetFullPath(configName, false).c_str()); prop, gt->GetFullPath(configName, false).c_str());
} }