summaryrefslogtreecommitdiffstats
path: root/Source/cmExportBuildFileGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-24 11:30:06 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-27 06:44:22 (GMT)
commit6bd7bd1e06fcf92d40c762f2713626d125cb8f87 (patch)
tree9aac8e5dd95c843e9e16d71d22dc4aef5a279ea4 /Source/cmExportBuildFileGenerator.cxx
parentb397eae82e14fdf75eddcbfd022d9f2d5933eb1e (diff)
downloadCMake-6bd7bd1e06fcf92d40c762f2713626d125cb8f87.zip
CMake-6bd7bd1e06fcf92d40c762f2713626d125cb8f87.tar.gz
CMake-6bd7bd1e06fcf92d40c762f2713626d125cb8f87.tar.bz2
Export: Use existing IsDLLPlatform porcelain
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r--Source/cmExportBuildFileGenerator.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx
index 23c11d7..9e36539 100644
--- a/Source/cmExportBuildFileGenerator.cxx
+++ b/Source/cmExportBuildFileGenerator.cxx
@@ -213,12 +213,8 @@ cmExportBuildFileGenerator
properties[prop] = value;
}
- // Check whether this is a DLL platform.
- bool dll_platform =
- (mf->IsOn("WIN32") || mf->IsOn("CYGWIN") || mf->IsOn("MINGW"));
-
// Add the import library for windows DLLs.
- if(dll_platform &&
+ if(target->IsDLLPlatform() &&
(target->GetType() == cmState::SHARED_LIBRARY ||
target->IsExecutableWithExports()) &&
mf->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"))