summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-11 14:39:51 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-23 13:14:44 (GMT)
commitcbf689c7dd39dc0952361b63e8322a0408b4569b (patch)
treea57919341354f08f67197803cb1b0f674429314f
parent2f0004c143455387c4b6ecac2458fcec4d57643f (diff)
downloadCMake-cbf689c7dd39dc0952361b63e8322a0408b4569b.zip
CMake-cbf689c7dd39dc0952361b63e8322a0408b4569b.tar.gz
CMake-cbf689c7dd39dc0952361b63e8322a0408b4569b.tar.bz2
cmTarget: Rename Get{TransitiveTarget => LinkImplementation}Closure
The method computes the transitive closure of targets starting with the current target link implementation libraries. Clarify the name.
-rw-r--r--Source/cmTarget.cxx6
-rw-r--r--Source/cmTarget.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 6759a3d..72c46ed 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -5207,7 +5207,7 @@ PropertyType checkInterfacePropertyCompatibility(cmTarget const* tgt,
|| (!impliedByUse && !explicitlySet));
std::vector<cmTarget*> deps;
- tgt->GetTransitiveTargetClosure(config, deps);
+ tgt->GetLinkImplementationClosure(config, deps);
if(deps.empty())
{
@@ -5423,7 +5423,7 @@ bool isLinkDependentProperty(cmTarget const* tgt, const std::string &p,
const std::string& config)
{
std::vector<cmTarget*> deps;
- tgt->GetTransitiveTargetClosure(config, deps);
+ tgt->GetLinkImplementationClosure(config, deps);
if(deps.empty())
{
@@ -6142,7 +6142,7 @@ void processILibs(const std::string& config,
}
//----------------------------------------------------------------------------
-void cmTarget::GetTransitiveTargetClosure(const std::string& config,
+void cmTarget::GetLinkImplementationClosure(const std::string& config,
std::vector<cmTarget*> &tgts) const
{
std::set<cmTarget*> emitted;
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 762323f..2211338 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -276,8 +276,8 @@ public:
void GetTransitivePropertyTargets(const std::string& config,
cmTarget const* headTarget,
std::vector<cmTarget*> &libs) const;
- void GetTransitiveTargetClosure(const std::string& config,
- std::vector<cmTarget*> &libs) const;
+ void GetLinkImplementationClosure(const std::string& config,
+ std::vector<cmTarget*> &libs) const;
/** The link implementation specifies the direct library
dependencies needed by the object files of the target. */