Export: Use existing IsDLLPlatform porcelain
This commit is contained in:
parent
b397eae82e
commit
6bd7bd1e06
|
@ -213,12 +213,8 @@ cmExportBuildFileGenerator
|
||||||
properties[prop] = value;
|
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.
|
// Add the import library for windows DLLs.
|
||||||
if(dll_platform &&
|
if(target->IsDLLPlatform() &&
|
||||||
(target->GetType() == cmState::SHARED_LIBRARY ||
|
(target->GetType() == cmState::SHARED_LIBRARY ||
|
||||||
target->IsExecutableWithExports()) &&
|
target->IsExecutableWithExports()) &&
|
||||||
mf->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"))
|
mf->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"))
|
||||||
|
|
|
@ -879,10 +879,7 @@ cmExportFileGenerator
|
||||||
if(target->GetType() == cmState::SHARED_LIBRARY ||
|
if(target->GetType() == cmState::SHARED_LIBRARY ||
|
||||||
target->GetType() == cmState::MODULE_LIBRARY)
|
target->GetType() == cmState::MODULE_LIBRARY)
|
||||||
{
|
{
|
||||||
// Check whether this is a DLL platform.
|
if(!target->IsDLLPlatform())
|
||||||
bool dll_platform =
|
|
||||||
(mf->IsOn("WIN32") || mf->IsOn("CYGWIN") || mf->IsOn("MINGW"));
|
|
||||||
if(!dll_platform)
|
|
||||||
{
|
{
|
||||||
std::string prop;
|
std::string prop;
|
||||||
std::string value;
|
std::string value;
|
||||||
|
|
Loading…
Reference in New Issue