cmGeneratorTarget: Port language computation to cmGeneratorTarget.

This commit is contained in:
Stephen Kelly 2015-10-16 19:19:49 +02:00
parent 60bd9f9c92
commit 0ebe2bbf4a
1 changed files with 3 additions and 3 deletions

View File

@ -5276,10 +5276,10 @@ void cmGeneratorTarget::GetLanguages(std::set<std::string>& languages,
i = externalObjects.begin(); i != externalObjects.end(); ++i)
{
std::string objLib = (*i)->GetObjectLibrary();
if (cmTarget* tgt = this->Makefile->FindTargetToUse(objLib))
if (cmGeneratorTarget* tgt =
this->LocalGenerator->FindGeneratorTargetToUse(objLib))
{
objectLibraries.push_back(this->GlobalGenerator
->GetGeneratorTarget(tgt));
objectLibraries.push_back(tgt);
}
}
}