cmGeneratorTarget: Move LinkLanguagePropagatesToDependents from cmTarget
This commit is contained in:
parent
00b8c0a8d4
commit
b397eae82e
|
@ -999,7 +999,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
|
||||||
|
|
||||||
if (propertyName == "LINKER_LANGUAGE")
|
if (propertyName == "LINKER_LANGUAGE")
|
||||||
{
|
{
|
||||||
if (target->Target->LinkLanguagePropagatesToDependents() &&
|
if (target->LinkLanguagePropagatesToDependents() &&
|
||||||
dagCheckerParent && (dagCheckerParent->EvaluatingLinkLibraries()
|
dagCheckerParent && (dagCheckerParent->EvaluatingLinkLibraries()
|
||||||
|| dagCheckerParent->EvaluatingSources()))
|
|| dagCheckerParent->EvaluatingSources()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -4770,7 +4770,7 @@ void cmGeneratorTarget::ComputeLinkInterface(const std::string& config,
|
||||||
iface.WrongConfigLibraries = impl->WrongConfigLibraries;
|
iface.WrongConfigLibraries = impl->WrongConfigLibraries;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this->Target->LinkLanguagePropagatesToDependents())
|
if(this->LinkLanguagePropagatesToDependents())
|
||||||
{
|
{
|
||||||
// Targets using this archive need its language runtime libraries.
|
// Targets using this archive need its language runtime libraries.
|
||||||
if(cmLinkImplementation const* impl =
|
if(cmLinkImplementation const* impl =
|
||||||
|
@ -5485,7 +5485,7 @@ void cmGeneratorTarget::ComputeImportInfo(std::string const& desired_config,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the link languages.
|
// Get the link languages.
|
||||||
if(this->Target->LinkLanguagePropagatesToDependents())
|
if(this->LinkLanguagePropagatesToDependents())
|
||||||
{
|
{
|
||||||
std::string linkProp = "IMPORTED_LINK_INTERFACE_LANGUAGES";
|
std::string linkProp = "IMPORTED_LINK_INTERFACE_LANGUAGES";
|
||||||
linkProp += suffix;
|
linkProp += suffix;
|
||||||
|
|
|
@ -189,6 +189,9 @@ public:
|
||||||
std::set<std::string>const& GetUtilities() const;
|
std::set<std::string>const& GetUtilities() const;
|
||||||
cmListFileBacktrace const* GetUtilityBacktrace(const std::string& u) const;
|
cmListFileBacktrace const* GetUtilityBacktrace(const std::string& u) const;
|
||||||
|
|
||||||
|
bool LinkLanguagePropagatesToDependents() const
|
||||||
|
{ return this->GetType() == cmState::STATIC_LIBRARY; }
|
||||||
|
|
||||||
/** Get the macro to define when building sources in this target.
|
/** Get the macro to define when building sources in this target.
|
||||||
If no macro should be defined null is returned. */
|
If no macro should be defined null is returned. */
|
||||||
const char* GetExportMacro() const;
|
const char* GetExportMacro() const;
|
||||||
|
|
|
@ -227,9 +227,6 @@ public:
|
||||||
std::set<std::string> const & GetSystemIncludeDirectories() const
|
std::set<std::string> const & GetSystemIncludeDirectories() const
|
||||||
{ return this->SystemIncludeDirectories; }
|
{ return this->SystemIncludeDirectories; }
|
||||||
|
|
||||||
bool LinkLanguagePropagatesToDependents() const
|
|
||||||
{ return this->TargetTypeValue == cmState::STATIC_LIBRARY; }
|
|
||||||
|
|
||||||
cmStringRange GetIncludeDirectoriesEntries() const;
|
cmStringRange GetIncludeDirectoriesEntries() const;
|
||||||
cmBacktraceRange GetIncludeDirectoriesBacktraces() const;
|
cmBacktraceRange GetIncludeDirectoriesBacktraces() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue