cmGlobalVisualStudioGenerator: remove TargetCanBeReferenced()

This commit is contained in:
Michael Stürmer
2018-03-22 17:09:43 +01:00
parent 359544a907
commit 663f5120f4
3 changed files with 4 additions and 17 deletions
+4 -1
View File
@@ -3773,7 +3773,10 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences()
"{" + this->GlobalGenerator->GetGUID(name) + "}", 3);
this->WriteElem("Name", name, 3);
this->WriteDotNetReferenceCustomTags(name);
if (!this->GlobalGenerator->TargetCanBeReferenced(dt)) {
// If the target is not compiled with any /clr flag, there is
// no assembly to reference.
if (this->Managed &&
dt->GetManagedType("") < cmGeneratorTarget::ManagedType::Mixed) {
this->WriteElem("ReferenceOutputAssembly", "false", 3);
}
this->WriteString("</ProjectReference>\n", 2);