Quellcode durchsuchen

VS: Compute managed type from an existing configuration

It is not clear how multiple configurations should be handled here, but
using an existing configuration is at least better than the empty
configuration.
Brad King vor 5 Jahren
Ursprung
Commit
27ead9d4b7
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      Source/cmVisualStudio10TargetGenerator.cxx

+ 2 - 1
Source/cmVisualStudio10TargetGenerator.cxx

@@ -4134,7 +4134,8 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences(Elem& e0)
     }
 
     // Don't reference targets that don't produce any output.
-    if (dt->GetManagedType("") == cmGeneratorTarget::ManagedType::Undefined) {
+    if (dt->GetManagedType(this->Configurations[0]) ==
+        cmGeneratorTarget::ManagedType::Undefined) {
       e2.Element("ReferenceOutputAssembly", "false");
       e2.Element("CopyToOutputDirectory", "Never");
     }