Kaynağa Gözat

install: do not strip dll import libraries (#14123)

DLL import libraries exist specifically to have symbols.
Alex Neundorf 12 yıl önce
ebeveyn
işleme
ae8e6543a5
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      Source/cmInstallTargetGenerator.cxx

+ 3 - 3
Source/cmInstallTargetGenerator.cxx

@@ -717,9 +717,9 @@ cmInstallTargetGenerator::AddStripRule(std::ostream& os,
                                        const std::string& toDestDirPath)
 {
 
-  // don't strip static libraries, because it removes the only symbol table
-  // they have so you can't link to them anymore
-  if(this->Target->GetType() == cmTarget::STATIC_LIBRARY)
+  // don't strip static and import libraries, because it removes the only
+  // symbol table they have so you can't link to them anymore
+  if(this->Target->GetType()==cmTarget::STATIC_LIBRARY || this->ImportLibrary)
     {
     return;
     }