diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-16 17:19:49 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-16 18:17:31 (GMT) |
commit | 0ebe2bbf4ae7f19b10f8374313b2bbd6fcd6c3da (patch) | |
tree | 0390b64fcc7f1ced1ed3e1d224a46e6cc8b42561 /Source | |
parent | 60bd9f9c92faae368fab1c44cf81b489c6a875cb (diff) | |
download | CMake-0ebe2bbf4ae7f19b10f8374313b2bbd6fcd6c3da.zip CMake-0ebe2bbf4ae7f19b10f8374313b2bbd6fcd6c3da.tar.gz CMake-0ebe2bbf4ae7f19b10f8374313b2bbd6fcd6c3da.tar.bz2 |
cmGeneratorTarget: Port language computation to cmGeneratorTarget.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 9b3bf28..994fcb1 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -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); } } } |