Commit 411a2270 authored by Michael Stürmer's avatar Michael Stürmer
Browse files

cmGeneratorTarget: add handling of managed assemblies to HasImportLibrary()

parent fb433ff2
...@@ -5432,7 +5432,10 @@ bool cmGeneratorTarget::HasImportLibrary(std::string const& config) const ...@@ -5432,7 +5432,10 @@ bool cmGeneratorTarget::HasImportLibrary(std::string const& config) const
{ {
return (this->IsDLLPlatform() && return (this->IsDLLPlatform() &&
(this->GetType() == cmStateEnums::SHARED_LIBRARY || (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 std::string cmGeneratorTarget::GetSupportDirectory() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment