Просмотр исходного кода

Merge topic 'simpler-import-lib-check'

9a5dcc32 cmExportBuildFileGenerator: use HasImportLibrary

Acked-by: Kitware Robot <[email protected]>
Merge-request: !699
Brad King 8 лет назад
Родитель
Сommit
d4db7a2ec0
1 измененных файлов с 1 добавлено и 3 удалено
  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;