mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
cmGeneratorTarget: Move ComputeLinkImplementationLanguages from cmTarget.
This commit is contained in:
@@ -3704,20 +3704,6 @@ void cmTarget::ComputeLinkImplementationLibraries(
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmTarget::ComputeLinkImplementationLanguages(
|
||||
const std::string& config,
|
||||
cmOptionalLinkImplementation& impl) const
|
||||
{
|
||||
// This target needs runtime libraries for its source languages.
|
||||
std::set<std::string> languages;
|
||||
// Get languages used in our source files.
|
||||
this->GetLanguages(languages, config);
|
||||
// Copy the set of langauges to the link implementation.
|
||||
impl.Languages.insert(impl.Languages.begin(),
|
||||
languages.begin(), languages.end());
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
cmTarget const* cmTarget::FindTargetToLink(std::string const& name) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user