Commit d4db7a2e authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'simpler-import-lib-check'

9a5dcc32 cmExportBuildFileGenerator: use HasImportLibrary
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !699
parents c0323cbf 9a5dcc32
......@@ -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() &&
std::string prop = "IMPORTED_IMPLIB";
prop += suffix;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment