cmGeneratorTarget: add handling of managed assemblies to HasImportLibrary()

This commit is contained in:
Michael Stürmer
2018-04-05 06:36:51 +02:00
parent fb433ff283
commit 411a22706a
+4 -1
View File
@@ -5432,7 +5432,10 @@ bool cmGeneratorTarget::HasImportLibrary(std::string const& config) const
{
return (this->IsDLLPlatform() &&
(this->GetType() == cmStateEnums::SHARED_LIBRARY ||
this->IsExecutableWithExports()));
this->IsExecutableWithExports()) &&
// Assemblies which have only managed code do not have
// import libraries.
this->GetManagedType(config) != ManagedType::Managed);
}
std::string cmGeneratorTarget::GetSupportDirectory() const