summaryrefslogtreecommitdiffstats
path: root/Source/cmExportBuildFileGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-04-13 12:12:55 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-04-13 12:12:55 (GMT)
commit9a5dcc32676a24a2dd282330839ce48d84c3da67 (patch)
tree17a93a8e120cb6cbf1b2f1e691df9ba71807fd53 /Source/cmExportBuildFileGenerator.cxx
parentfddd559406558a2037733e5b760e9dd04e9edfd1 (diff)
downloadCMake-9a5dcc32676a24a2dd282330839ce48d84c3da67.zip
CMake-9a5dcc32676a24a2dd282330839ce48d84c3da67.tar.gz
CMake-9a5dcc32676a24a2dd282330839ce48d84c3da67.tar.bz2
cmExportBuildFileGenerator: use HasImportLibrary
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r--Source/cmExportBuildFileGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx
index 0c25268..539d854 100644
--- a/Source/cmExportBuildFileGenerator.cxx
+++ b/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;