diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-26 17:38:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-26 17:38:37 (GMT) |
commit | 0db9d9278760c90be1fbf5c4eeb93ef9c524041a (patch) | |
tree | c385286a2a7452078b46e847e717eb8b89fb143e /Source/cmTarget.cxx | |
parent | 84b847e42fde288bc102198aedeb68e19b41ef1e (diff) | |
download | CMake-0db9d9278760c90be1fbf5c4eeb93ef9c524041a.zip CMake-0db9d9278760c90be1fbf5c4eeb93ef9c524041a.tar.gz CMake-0db9d9278760c90be1fbf5c4eeb93ef9c524041a.tar.bz2 |
cmGeneratorTarget: Move GetLinkInterfaceLibraries from cmTarget.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index c8a9148..00dbc6a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -4107,50 +4107,6 @@ void cmTarget::ComputeImportInfo(std::string const& desired_config, } } -//---------------------------------------------------------------------------- -const cmLinkInterfaceLibraries * -cmTarget::GetLinkInterfaceLibraries(const std::string& config, - cmTarget const* head, - bool usage_requirements_only) const -{ - // Imported targets have their own link interface. - if(this->IsImported()) - { - return this->GetImportLinkInterface(config, head, usage_requirements_only); - } - - // 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 = - (usage_requirements_only ? - this->GetHeadToLinkInterfaceUsageRequirementsMap(config) : - 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, usage_requirements_only); - } - - return iface.Exists? &iface : 0; -} - cmHeadToLinkInterfaceMap& cmTarget::GetHeadToLinkInterfaceMap(const std::string &config) const { |