mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
cmExportBuildFileGenerator: use HasImportLibrary
This commit is contained in:
1 parent
fddd559406
commit
9a5dcc3267
1 file changed
+1
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user