diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-07 22:49:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-12 16:39:58 (GMT) |
commit | c7645fca12870cef732f26730588cda3be072852 (patch) | |
tree | f7e28965906f7471794d9d717dc2d299b8cc8912 /Source/cmCommonTargetGenerator.cxx | |
parent | ce8894aaf07871dbc58039e0ff0f22efaee7c014 (diff) | |
download | CMake-c7645fca12870cef732f26730588cda3be072852.zip CMake-c7645fca12870cef732f26730588cda3be072852.tar.gz CMake-c7645fca12870cef732f26730588cda3be072852.tar.bz2 |
cmComputeLinkInformation: Port data interface to cmGeneratorTarget.
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r-- | Source/cmCommonTargetGenerator.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx index 252e231..b9ed345 100644 --- a/Source/cmCommonTargetGenerator.cxx +++ b/Source/cmCommonTargetGenerator.cxx @@ -391,21 +391,19 @@ cmCommonTargetGenerator::GetLinkedTargetDirectories() const for(cmComputeLinkInformation::ItemVector::const_iterator i = items.begin(); i != items.end(); ++i) { - cmTarget const* linkee = i->Target; + cmGeneratorTarget const* linkee = i->Target; if(linkee && !linkee->IsImported() // We can ignore the INTERFACE_LIBRARY items because // Target->GetLinkInformation already processed their // link interface and they don't have any output themselves. && linkee->GetType() != cmTarget::INTERFACE_LIBRARY - && emitted.insert(linkee).second) + && emitted.insert(linkee->Target).second) { - cmGeneratorTarget* gt = - this->GlobalGenerator->GetGeneratorTarget(linkee); - cmLocalGenerator* lg = gt->GetLocalGenerator(); - cmMakefile* mf = linkee->GetMakefile(); + cmLocalGenerator* lg = linkee->GetLocalGenerator(); + cmMakefile* mf = linkee->Target->GetMakefile(); std::string di = mf->GetCurrentBinaryDirectory(); di += "/"; - di += lg->GetTargetDirectory(*linkee); + di += lg->GetTargetDirectory(*linkee->Target); dirs.push_back(di); } } |