install: do not strip dll import libraries (#14123)
DLL import libraries exist specifically to have symbols.
This commit is contained in:
parent
daaf6283f5
commit
ae8e6543a5
@ -717,9 +717,9 @@ cmInstallTargetGenerator::AddStripRule(std::ostream& os,
|
|||||||
const std::string& toDestDirPath)
|
const std::string& toDestDirPath)
|
||||||
{
|
{
|
||||||
|
|
||||||
// don't strip static libraries, because it removes the only symbol table
|
// don't strip static and import libraries, because it removes the only
|
||||||
// they have so you can't link to them anymore
|
// symbol table they have so you can't link to them anymore
|
||||||
if(this->Target->GetType() == cmTarget::STATIC_LIBRARY)
|
if(this->Target->GetType()==cmTarget::STATIC_LIBRARY || this->ImportLibrary)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user