Export: Use existing IsDLLPlatform porcelain

This commit is contained in:
Stephen Kelly
2015-10-24 13:30:06 +02:00
parent b397eae82e
commit 6bd7bd1e06
2 changed files with 2 additions and 9 deletions
+1 -4
View File
@@ -879,10 +879,7 @@ cmExportFileGenerator
if(target->GetType() == cmState::SHARED_LIBRARY ||
target->GetType() == cmState::MODULE_LIBRARY)
{
// Check whether this is a DLL platform.
bool dll_platform =
(mf->IsOn("WIN32") || mf->IsOn("CYGWIN") || mf->IsOn("MINGW"));
if(!dll_platform)
if(!target->IsDLLPlatform())
{
std::string prop;
std::string value;