|
|
@@ -6241,7 +6241,7 @@ void cmTarget::ComputeImportInfo(std::string const& desired_config,
|
|
|
}
|
|
|
|
|
|
// Get the link languages.
|
|
|
- if(this->GetType() == cmTarget::STATIC_LIBRARY)
|
|
|
+ if(this->LinkLanguagePropagatesToDependents())
|
|
|
{
|
|
|
std::string linkProp = "IMPORTED_LINK_INTERFACE_LANGUAGES";
|
|
|
linkProp += suffix;
|
|
|
@@ -6470,7 +6470,7 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface,
|
|
|
else
|
|
|
{
|
|
|
iface.Libraries = impl->Libraries;
|
|
|
- if(this->GetType() == cmTarget::STATIC_LIBRARY)
|
|
|
+ if(this->LinkLanguagePropagatesToDependents())
|
|
|
{
|
|
|
// Targets using this archive need its language runtime libraries.
|
|
|
iface.Languages = impl->Languages;
|
|
|
@@ -6539,7 +6539,7 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if(this->GetType() == cmTarget::STATIC_LIBRARY)
|
|
|
+ if(this->LinkLanguagePropagatesToDependents())
|
|
|
{
|
|
|
// Targets using this archive need its language runtime libraries.
|
|
|
iface.Languages = impl->Languages;
|
|
|
@@ -6558,7 +6558,7 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface,
|
|
|
iface.ImplementationIsInterface = true;
|
|
|
iface.Libraries = impl->Libraries;
|
|
|
iface.WrongConfigLibraries = impl->WrongConfigLibraries;
|
|
|
- if(this->GetType() == cmTarget::STATIC_LIBRARY)
|
|
|
+ if(this->LinkLanguagePropagatesToDependents())
|
|
|
{
|
|
|
// Targets using this archive need its language runtime libraries.
|
|
|
iface.Languages = impl->Languages;
|