Selaa lähdekoodia

cmExportBuildFileGenerator: use HasImportLibrary

Ben Boeckel 8 vuotta sitten
vanhempi
sitoutus
9a5dcc3267
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      Source/cmExportBuildFileGenerator.cxx

+ 1 - 3
Source/cmExportBuildFileGenerator.cxx

@@ -185,9 +185,7 @@ void cmExportBuildFileGenerator::SetImportLocationProperty(
   }
 
   // Add the import library for windows DLLs.
-  if (target->IsDLLPlatform() &&
-      (target->GetType() == cmStateEnums::SHARED_LIBRARY ||
-       target->IsExecutableWithExports()) &&
+  if (target->HasImportLibrary() &&
       mf->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX")) {
     std::string prop = "IMPORTED_IMPLIB";
     prop += suffix;