summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-26 17:37:45 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-26 17:37:45 (GMT)
commit6220241fd0bb7902c932742a7aa3d6a96fd0e919 (patch)
treefe8ad134b3e4aab83124fdfaee5f49ca72ac9cd2 /Source/cmTarget.cxx
parent6353816786caccfef7acb3fd72aa28e0366da405 (diff)
downloadCMake-6220241fd0bb7902c932742a7aa3d6a96fd0e919.zip
CMake-6220241fd0bb7902c932742a7aa3d6a96fd0e919.tar.gz
CMake-6220241fd0bb7902c932742a7aa3d6a96fd0e919.tar.bz2
cmGeneratorTarget: Move GetLinkInterface from cmTarget.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx47
1 files changed, 0 insertions, 47 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index fb545b1..ee298ac 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -4108,53 +4108,6 @@ void cmTarget::ComputeImportInfo(std::string const& desired_config,
}
//----------------------------------------------------------------------------
-cmLinkInterface const* cmTarget::GetLinkInterface(const std::string& config,
- cmTarget const* head) const
-{
- // Imported targets have their own link interface.
- if(this->IsImported())
- {
- return this->GetImportLinkInterface(config, head, false);
- }
-
- // Link interfaces are not supported for executables that do not
- // export symbols.
- if(this->GetType() == cmTarget::EXECUTABLE &&
- !this->IsExecutableWithExports())
- {
- return 0;
- }
-
- // Lookup any existing link interface for this configuration.
- cmHeadToLinkInterfaceMap& hm = this->GetHeadToLinkInterfaceMap(config);
-
- // If the link interface does not depend on the head target
- // then return the one we computed first.
- if(!hm.empty() && !hm.begin()->second.HadHeadSensitiveCondition)
- {
- return &hm.begin()->second;
- }
-
- cmOptionalLinkInterface& iface = hm[head];
- if(!iface.LibrariesDone)
- {
- iface.LibrariesDone = true;
- this->ComputeLinkInterfaceLibraries(
- config, iface, head, false);
- }
- if(!iface.AllDone)
- {
- iface.AllDone = true;
- if(iface.Exists)
- {
- this->ComputeLinkInterface(config, iface, head);
- }
- }
-
- return iface.Exists? &iface : 0;
-}
-
-//----------------------------------------------------------------------------
const cmLinkInterfaceLibraries *
cmTarget::GetLinkInterfaceLibraries(const std::string& config,
cmTarget const* head,