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