BUG: Import libraries should be installed as STATIC_LIBRARY.
This commit is contained in:
parent
96f0266228
commit
39f4e7f5e0
|
@ -140,6 +140,12 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// An import library looks like a static library.
|
||||||
|
if(this->ImportLibrary)
|
||||||
|
{
|
||||||
|
type = cmTarget::STATIC_LIBRARY;
|
||||||
|
}
|
||||||
|
|
||||||
// Write code to install the target file.
|
// Write code to install the target file.
|
||||||
this->AddInstallRule(os, this->Destination.c_str(), type, fromFile.c_str(),
|
this->AddInstallRule(os, this->Destination.c_str(), type, fromFile.c_str(),
|
||||||
this->ImportLibrary, properties);
|
this->ImportLibrary, properties);
|
||||||
|
@ -170,11 +176,13 @@ std::string cmInstallTargetGenerator::GetInstallReference()
|
||||||
{
|
{
|
||||||
if(this->ConfigurationTypes->empty())
|
if(this->ConfigurationTypes->empty())
|
||||||
{
|
{
|
||||||
|
// Reference the target by its one configuration name.
|
||||||
return this->Target->GetFullName(this->ConfigurationName,
|
return this->Target->GetFullName(this->ConfigurationName,
|
||||||
this->ImportLibrary);
|
this->ImportLibrary);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Reference the target using the per-configuration variable.
|
||||||
std::string ref = "${";
|
std::string ref = "${";
|
||||||
ref += this->Target->GetName();
|
ref += this->Target->GetName();
|
||||||
if(this->ImportLibrary)
|
if(this->ImportLibrary)
|
||||||
|
|
Loading…
Reference in New Issue