cmVisualStudio10TargetGenerator: add handling of static C# targets

This commit is contained in:
Michael Stürmer
2018-04-27 07:31:45 +02:00
parent d244f2cad3
commit b7c2b2cd78

View File

@@ -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");
}