diff options
author | Brad King <brad.king@kitware.com> | 2014-06-16 14:58:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-23 13:21:56 (GMT) |
commit | 097be4139df044c86daadb665ec224ee66e6b3bb (patch) | |
tree | 9d112d32470762de2953f7cd999a9401f60a4bcb /Source/cmComputeTargetDepends.cxx | |
parent | 4dad5fd20bfa330b3131fd5cafa709d85c1b58ec (diff) | |
download | CMake-097be4139df044c86daadb665ec224ee66e6b3bb.zip CMake-097be4139df044c86daadb665ec224ee66e6b3bb.tar.gz CMake-097be4139df044c86daadb665ec224ee66e6b3bb.tar.bz2 |
cmTarget: Add GetUtilityItems to get target ordering dependencies
Add a method like GetUtilities but that provides the target names
already looked up and resolved to cmTarget pointers internally. Update
call site in cmComputeTargetDepends::AddTargetDepend to use the
already-found target instead of looking it up again.
Diffstat (limited to 'Source/cmComputeTargetDepends.cxx')
-rw-r--r-- | Source/cmComputeTargetDepends.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx index a5df060..6196542 100644 --- a/Source/cmComputeTargetDepends.cxx +++ b/Source/cmComputeTargetDepends.cxx @@ -421,12 +421,11 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index, if(dependee->IsImported()) { // Skip imported targets but follow their utility dependencies. - std::set<std::string> const& utils = dependee->GetUtilities(); - for(std::set<std::string>::const_iterator i = utils.begin(); + std::set<cmLinkItem> const& utils = dependee->GetUtilityItems(); + for(std::set<cmLinkItem>::const_iterator i = utils.begin(); i != utils.end(); ++i) { - if(cmTarget const* transitive_dependee = - dependee->GetMakefile()->FindTargetToUse(*i)) + if(cmTarget const* transitive_dependee = i->Target) { this->AddTargetDepend(depender_index, transitive_dependee, false); } |