summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMichael Stürmer <michael.stuermer@schaeffler.com>2018-04-04 08:13:30 +0200
committerMichael Stürmer <michael.stuermer@schaeffler.com>2018-04-05 06:36:51 +0200
commit411a22706a60fa4fe75a1a4baac84161fa72e833 (patch)
tree430a6b46ce16bb46eda293585c29aea6f29a1c68 /Source
parentfb433ff283e57fc953975e7a7cfb9f24dcbf789b (diff)
downloadcmake-411a22706a60fa4fe75a1a4baac84161fa72e833.tar.gz
cmGeneratorTarget: add handling of managed assemblies to HasImportLibrary()
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx5
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