cmTarget: Extract a ComputeLinkImplementationLanguages method.

This commit is contained in:
Stephen Kelly 2014-02-13 11:26:08 +01:00
parent 21e91350b0
commit 326d07d27e
2 changed files with 7 additions and 0 deletions

View File

@ -5537,6 +5537,7 @@ cmTarget::GetLinkImplementation(const char* config, cmTarget const* head) const
// Compute the link implementation for this configuration. // Compute the link implementation for this configuration.
LinkImplementation impl; LinkImplementation impl;
this->ComputeLinkImplementation(config, impl, head); this->ComputeLinkImplementation(config, impl, head);
this->ComputeLinkImplementationLanguages(impl);
// Store the information for this configuration. // Store the information for this configuration.
cmTargetInternals::LinkImplMapType::value_type entry(key, impl); cmTargetInternals::LinkImplMapType::value_type entry(key, impl);
@ -5619,7 +5620,12 @@ void cmTarget::ComputeLinkImplementation(const char* config,
impl.WrongConfigLibraries.push_back(item); impl.WrongConfigLibraries.push_back(item);
} }
} }
}
//----------------------------------------------------------------------------
void
cmTarget::ComputeLinkImplementationLanguages(LinkImplementation& impl) const
{
// This target needs runtime libraries for its source languages. // This target needs runtime libraries for its source languages.
std::set<cmStdString> languages; std::set<cmStdString> languages;
// Get languages used in our source files. // Get languages used in our source files.

View File

@ -696,6 +696,7 @@ private:
void ComputeLinkImplementation(const char* config, void ComputeLinkImplementation(const char* config,
LinkImplementation& impl, LinkImplementation& impl,
cmTarget const* head) const; cmTarget const* head) const;
void ComputeLinkImplementationLanguages(LinkImplementation& impl) const;
void ComputeLinkClosure(const char* config, LinkClosure& lc, void ComputeLinkClosure(const char* config, LinkClosure& lc,
cmTarget const* head) const; cmTarget const* head) const;