summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorMichael Stürmer <michael.stuermer@schaeffler.com>2018-04-27 05:31:45 (GMT)
committerMichael Stürmer <michael.stuermer@schaeffler.com>2018-05-07 05:21:12 (GMT)
commitb7c2b2cd78a8bc16cd7e294c2ae9d5d45f029e22 (patch)
treeddf898d51b5a76088dc6038e209619015ea20585 /Source/cmVisualStudio10TargetGenerator.cxx
parentd244f2cad3fea2884eb706e2761189ea9644b70b (diff)
downloadCMake-b7c2b2cd78a8bc16cd7e294c2ae9d5d45f029e22.zip
CMake-b7c2b2cd78a8bc16cd7e294c2ae9d5d45f029e22.tar.gz
CMake-b7c2b2cd78a8bc16cd7e294c2ae9d5d45f029e22.tar.bz2
cmVisualStudio10TargetGenerator: add handling of static C# targets
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 3fb0e10..f4911c9 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3823,6 +3823,11 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences(Elem& e0)
}
}
}
+ // Workaround for static library C# targets
+ if (referenceNotManaged &&
+ dt->GetType() == cmStateEnums::STATIC_LIBRARY) {
+ referenceNotManaged = !dt->HasLanguage("CSharp", "");
+ }
if (referenceNotManaged) {
e2.Element("ReferenceOutputAssembly", "false");
}