cmLinkImplementationLibraries: Move to namespace scope.
This commit is contained in:
parent
d9da6ee29f
commit
10040601a2
|
@ -1120,7 +1120,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
|
|||
}
|
||||
else if(!interfacePropertyName.empty())
|
||||
{
|
||||
if(cmTarget::LinkImplementationLibraries const* impl =
|
||||
if(cmLinkImplementationLibraries const* impl =
|
||||
target->GetLinkImplementationLibraries(context->Config))
|
||||
{
|
||||
linkedTargetsContent =
|
||||
|
|
|
@ -1506,7 +1506,7 @@ cmGeneratorTarget::GetLinkImplementationClosure(
|
|||
tgts.Done = true;
|
||||
std::set<cmTarget const*> emitted;
|
||||
|
||||
cmTarget::LinkImplementationLibraries const* impl
|
||||
cmLinkImplementationLibraries const* impl
|
||||
= this->Target->GetLinkImplementationLibraries(config);
|
||||
|
||||
for(std::vector<cmLinkImplItem>::const_iterator
|
||||
|
|
|
@ -44,4 +44,16 @@ public:
|
|||
bool FromGenex;
|
||||
};
|
||||
|
||||
/** The link implementation specifies the direct library
|
||||
dependencies needed by the object files of the target. */
|
||||
struct cmLinkImplementationLibraries
|
||||
{
|
||||
// Libraries linked directly in this configuration.
|
||||
std::vector<cmLinkImplItem> Libraries;
|
||||
|
||||
// Libraries linked directly in other configurations.
|
||||
// Needed only for OLD behavior of CMP0003.
|
||||
std::vector<cmLinkItem> WrongConfigLibraries;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -3381,7 +3381,7 @@ bool cmTarget::HaveBuildTreeRPATH(const std::string& config) const
|
|||
{
|
||||
return false;
|
||||
}
|
||||
if(LinkImplementationLibraries const* impl =
|
||||
if(cmLinkImplementationLibraries const* impl =
|
||||
this->GetLinkImplementationLibraries(config))
|
||||
{
|
||||
return !impl->Libraries.empty();
|
||||
|
@ -4331,7 +4331,7 @@ cmTargetInternals::ComputeLinkInterfaceLibraries(
|
|||
// to the link implementation.
|
||||
{
|
||||
// The link implementation is the default link interface.
|
||||
cmTarget::LinkImplementationLibraries const* impl =
|
||||
cmLinkImplementationLibraries const* impl =
|
||||
thisTarget->GetLinkImplementationLibrariesInternal(config, headTarget);
|
||||
iface.Libraries.insert(iface.Libraries.end(),
|
||||
impl->Libraries.begin(), impl->Libraries.end());
|
||||
|
@ -4431,7 +4431,7 @@ void cmTargetInternals::ComputeLinkInterface(cmTarget const* thisTarget,
|
|||
|| thisTarget->GetPolicyStatusCMP0022() == cmPolicies::OLD)
|
||||
{
|
||||
// The link implementation is the default link interface.
|
||||
cmTarget::LinkImplementationLibraries const*
|
||||
cmLinkImplementationLibraries const*
|
||||
impl = thisTarget->GetLinkImplementationLibrariesInternal(config,
|
||||
headTarget);
|
||||
iface.ImplementationIsInterface = true;
|
||||
|
@ -4482,7 +4482,7 @@ void cmTargetInternals::AddInterfaceEntries(
|
|||
cmTarget const* thisTarget, std::string const& config,
|
||||
std::string const& prop, std::vector<TargetPropertyEntry*>& entries)
|
||||
{
|
||||
if(cmTarget::LinkImplementationLibraries const* impl =
|
||||
if(cmLinkImplementationLibraries const* impl =
|
||||
thisTarget->GetLinkImplementationLibraries(config))
|
||||
{
|
||||
for (std::vector<cmLinkImplItem>::const_iterator
|
||||
|
@ -4532,14 +4532,14 @@ cmTarget::GetLinkImplementation(const std::string& config) const
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
cmTarget::LinkImplementationLibraries const*
|
||||
cmLinkImplementationLibraries const*
|
||||
cmTarget::GetLinkImplementationLibraries(const std::string& config) const
|
||||
{
|
||||
return this->GetLinkImplementationLibrariesInternal(config, this);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
cmTarget::LinkImplementationLibraries const*
|
||||
cmLinkImplementationLibraries const*
|
||||
cmTarget::GetLinkImplementationLibrariesInternal(const std::string& config,
|
||||
cmTarget const* head) const
|
||||
{
|
||||
|
|
|
@ -268,18 +268,7 @@ public:
|
|||
cmTarget const* headTarget,
|
||||
bool usage_requirements_only) const;
|
||||
|
||||
/** The link implementation specifies the direct library
|
||||
dependencies needed by the object files of the target. */
|
||||
struct LinkImplementationLibraries
|
||||
{
|
||||
// Libraries linked directly in this configuration.
|
||||
std::vector<cmLinkImplItem> Libraries;
|
||||
|
||||
// Libraries linked directly in other configurations.
|
||||
// Needed only for OLD behavior of CMP0003.
|
||||
std::vector<cmLinkItem> WrongConfigLibraries;
|
||||
};
|
||||
struct LinkImplementation: public LinkImplementationLibraries
|
||||
struct LinkImplementation: public cmLinkImplementationLibraries
|
||||
{
|
||||
// Languages whose runtime libraries must be linked.
|
||||
std::vector<std::string> Languages;
|
||||
|
@ -287,7 +276,7 @@ public:
|
|||
LinkImplementation const*
|
||||
GetLinkImplementation(const std::string& config) const;
|
||||
|
||||
LinkImplementationLibraries const*
|
||||
cmLinkImplementationLibraries const*
|
||||
GetLinkImplementationLibraries(const std::string& config) const;
|
||||
|
||||
cmTarget const* FindTargetToLink(std::string const& name) const;
|
||||
|
@ -606,7 +595,7 @@ private:
|
|||
GetImportLinkInterface(const std::string& config, cmTarget const* head,
|
||||
bool usage_requirements_only) const;
|
||||
|
||||
LinkImplementationLibraries const*
|
||||
cmLinkImplementationLibraries const*
|
||||
GetLinkImplementationLibrariesInternal(const std::string& config,
|
||||
cmTarget const* head) const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue