diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-04-04 08:13:30 +0200 |
---|---|---|
committer | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-04-05 06:36:51 +0200 |
commit | 411a22706a60fa4fe75a1a4baac84161fa72e833 (patch) | |
tree | 430a6b46ce16bb46eda293585c29aea6f29a1c68 /Source | |
parent | fb433ff283e57fc953975e7a7cfb9f24dcbf789b (diff) | |
download | cmake-411a22706a60fa4fe75a1a4baac84161fa72e833.tar.gz |
cmGeneratorTarget: add handling of managed assemblies to HasImportLibrary()
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 2c78db980f..0cb299c056 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -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 |