cmTarget: Drop GetDirectLinkLibraries methods
Inline the implementation in the last remaining caller and drop the methods.
This commit is contained in:
parent
281eb3d8a6
commit
f5c18c9c1c
@ -1226,47 +1226,6 @@ bool cmTarget::NameResolvesToFramework(const std::string& libname) const
|
|||||||
NameResolvesToFramework(libname);
|
NameResolvesToFramework(libname);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
void cmTarget::GetDirectLinkLibraries(const std::string& config,
|
|
||||||
std::vector<std::string> &libs) const
|
|
||||||
{
|
|
||||||
this->GetDirectLinkLibrariesInternal(config, libs, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
void cmTarget::GetDirectLinkLibrariesInternal(const std::string& config,
|
|
||||||
std::vector<std::string> &libs,
|
|
||||||
cmTarget const* head) const
|
|
||||||
{
|
|
||||||
const char *prop = this->GetProperty("LINK_LIBRARIES");
|
|
||||||
if (prop)
|
|
||||||
{
|
|
||||||
cmGeneratorExpression ge;
|
|
||||||
const cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(prop);
|
|
||||||
|
|
||||||
cmGeneratorExpressionDAGChecker dagChecker(
|
|
||||||
this->GetName(),
|
|
||||||
"LINK_LIBRARIES", 0, 0);
|
|
||||||
cmSystemTools::ExpandListArgument(cge->Evaluate(this->Makefile,
|
|
||||||
config,
|
|
||||||
false,
|
|
||||||
head,
|
|
||||||
&dagChecker),
|
|
||||||
libs);
|
|
||||||
|
|
||||||
std::set<std::string> const& seenProps = cge->GetSeenTargetProperties();
|
|
||||||
for (std::set<std::string>::const_iterator it = seenProps.begin();
|
|
||||||
it != seenProps.end(); ++it)
|
|
||||||
{
|
|
||||||
if (!this->GetProperty(*it))
|
|
||||||
{
|
|
||||||
this->LinkImplicitNullProperties.insert(*it);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cge->GetMaxLanguageStandard(this, this->MaxLanguageStandards);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
std::string cmTarget::GetDebugGeneratorExpressions(const std::string &value,
|
std::string cmTarget::GetDebugGeneratorExpressions(const std::string &value,
|
||||||
cmTarget::LinkLibraryType llt) const
|
cmTarget::LinkLibraryType llt) const
|
||||||
@ -6634,7 +6593,33 @@ void cmTarget::ComputeLinkImplementation(const std::string& config,
|
|||||||
{
|
{
|
||||||
// Collect libraries directly linked in this configuration.
|
// Collect libraries directly linked in this configuration.
|
||||||
std::vector<std::string> llibs;
|
std::vector<std::string> llibs;
|
||||||
this->GetDirectLinkLibrariesInternal(config, llibs, head);
|
if(const char *prop = this->GetProperty("LINK_LIBRARIES"))
|
||||||
|
{
|
||||||
|
cmGeneratorExpression ge;
|
||||||
|
const cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(prop);
|
||||||
|
|
||||||
|
cmGeneratorExpressionDAGChecker dagChecker(
|
||||||
|
this->GetName(),
|
||||||
|
"LINK_LIBRARIES", 0, 0);
|
||||||
|
cmSystemTools::ExpandListArgument(cge->Evaluate(this->Makefile,
|
||||||
|
config,
|
||||||
|
false,
|
||||||
|
head,
|
||||||
|
&dagChecker),
|
||||||
|
llibs);
|
||||||
|
|
||||||
|
std::set<std::string> const& seenProps = cge->GetSeenTargetProperties();
|
||||||
|
for (std::set<std::string>::const_iterator it = seenProps.begin();
|
||||||
|
it != seenProps.end(); ++it)
|
||||||
|
{
|
||||||
|
if (!this->GetProperty(*it))
|
||||||
|
{
|
||||||
|
this->LinkImplicitNullProperties.insert(*it);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cge->GetMaxLanguageStandard(this, this->MaxLanguageStandards);
|
||||||
|
}
|
||||||
|
|
||||||
for(std::vector<std::string>::const_iterator li = llibs.begin();
|
for(std::vector<std::string>::const_iterator li = llibs.begin();
|
||||||
li != llibs.end(); ++li)
|
li != llibs.end(); ++li)
|
||||||
{
|
{
|
||||||
|
@ -169,8 +169,6 @@ public:
|
|||||||
return this->LinkLibraries;}
|
return this->LinkLibraries;}
|
||||||
const LinkLibraryVectorType &GetOriginalLinkLibraries() const
|
const LinkLibraryVectorType &GetOriginalLinkLibraries() const
|
||||||
{return this->OriginalLinkLibraries;}
|
{return this->OriginalLinkLibraries;}
|
||||||
void GetDirectLinkLibraries(const std::string& config,
|
|
||||||
std::vector<std::string> &) const;
|
|
||||||
|
|
||||||
/** Compute the link type to use for the given configuration. */
|
/** Compute the link type to use for the given configuration. */
|
||||||
LinkLibraryType ComputeLinkType(const std::string& config) const;
|
LinkLibraryType ComputeLinkType(const std::string& config) const;
|
||||||
@ -766,9 +764,6 @@ private:
|
|||||||
cmTarget const* head,
|
cmTarget const* head,
|
||||||
bool &exists) const;
|
bool &exists) const;
|
||||||
|
|
||||||
void GetDirectLinkLibrariesInternal(const std::string& config,
|
|
||||||
std::vector<std::string>& libs,
|
|
||||||
cmTarget const* head) const;
|
|
||||||
LinkImplementation const*
|
LinkImplementation const*
|
||||||
GetLinkImplementationLibrariesInternal(const std::string& config,
|
GetLinkImplementationLibrariesInternal(const std::string& config,
|
||||||
cmTarget const* head) const;
|
cmTarget const* head) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user