Browse Source

Merge topic 'vs-conditional-reference-assembly'

c8e98974d8 VS: Disallow ReferenceOutputAssembly in ProjectReference if not possible

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1956
Brad King 7 years ago
parent
commit
d41e767f2b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Source/cmVisualStudio10TargetGenerator.cxx

+ 2 - 4
Source/cmVisualStudio10TargetGenerator.cxx

@@ -3667,10 +3667,8 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences()
                     "{" + this->GlobalGenerator->GetGUID(name) + "}", 3);
     this->WriteElem("Name", name, 3);
     this->WriteDotNetReferenceCustomTags(name);
-    if (csproj == this->ProjectType) {
-      if (!this->GlobalGenerator->TargetCanBeReferenced(dt)) {
-        this->WriteElem("ReferenceOutputAssembly", "false", 3);
-      }
+    if (!this->GlobalGenerator->TargetCanBeReferenced(dt)) {
+      this->WriteElem("ReferenceOutputAssembly", "false", 3);
     }
     this->WriteString("</ProjectReference>\n", 2);
   }