mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 06:10:28 +00:00
cmTarget: Inline MergeLinkLibraries into only caller
This commit is contained in:
@@ -1863,7 +1863,16 @@ void cmMakefile::AddGlobalLinkInformation(const std::string& name,
|
||||
}
|
||||
}
|
||||
}
|
||||
target.MergeLinkLibraries(*this, name, this->LinkLibraries);
|
||||
|
||||
cmTarget::LinkLibraryVectorType::const_iterator i =
|
||||
this->LinkLibraries.begin();
|
||||
for (; i != this->LinkLibraries.end(); ++i) {
|
||||
// This is equivalent to the target_link_libraries plain signature.
|
||||
target.AddLinkLibrary(*this, name, i->first, i->second);
|
||||
target.AppendProperty(
|
||||
"INTERFACE_LINK_LIBRARIES",
|
||||
target.GetDebugGeneratorExpressions(i->first, i->second).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void cmMakefile::AddAlias(const std::string& lname, std::string const& tgtName)
|
||||
|
||||
@@ -476,19 +476,6 @@ cmSourceFile* cmTarget::AddSource(const std::string& src)
|
||||
return this->Makefile->GetOrCreateSource(src);
|
||||
}
|
||||
|
||||
void cmTarget::MergeLinkLibraries(cmMakefile& mf, const std::string& selfname,
|
||||
const LinkLibraryVectorType& libs)
|
||||
{
|
||||
LinkLibraryVectorType::const_iterator i = libs.begin();
|
||||
for (; i != libs.end(); ++i) {
|
||||
// This is equivalent to the target_link_libraries plain signature.
|
||||
this->AddLinkLibrary(mf, selfname, i->first, i->second);
|
||||
this->AppendProperty(
|
||||
"INTERFACE_LINK_LIBRARIES",
|
||||
this->GetDebugGeneratorExpressions(i->first, i->second).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void cmTarget::AddLinkDirectory(const std::string& d)
|
||||
{
|
||||
// Make sure we don't add unnecessary search directories.
|
||||
|
||||
@@ -153,9 +153,6 @@ public:
|
||||
cmListFileContext const& lfc);
|
||||
void GetTllSignatureTraces(std::ostream& s, TLLSignature sig) const;
|
||||
|
||||
void MergeLinkLibraries(cmMakefile& mf, const std::string& selfname,
|
||||
const LinkLibraryVectorType& libs);
|
||||
|
||||
const std::vector<std::string>& GetLinkDirectories() const;
|
||||
|
||||
void AddLinkDirectory(const std::string& d);
|
||||
|
||||
Reference in New Issue
Block a user