summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorDario Passet <dpd.gml@gmail.com>2021-05-13 07:26:06 (GMT)
committerDario Passet <dario.passet@txtgroup.com>2021-05-13 07:48:31 (GMT)
commit65b58b0316598d03c6865a11203c3ac5b8ba36a4 (patch)
tree98e949ab4bf353a49323eff195f8429261be906e /Source/cmVisualStudio10TargetGenerator.cxx
parent049d388cfa73bf034655dcb976fa059d29ab7abc (diff)
downloadCMake-65b58b0316598d03c6865a11203c3ac5b8ba36a4.zip
CMake-65b58b0316598d03c6865a11203c3ac5b8ba36a4.tar.gz
CMake-65b58b0316598d03c6865a11203c3ac5b8ba36a4.tar.bz2
VS Generator: Properly reference included external C# projects
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 12a3679..ad98ba5 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -4253,11 +4253,10 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences(Elem& e0)
if (dt->IsCSharpOnly() || cmHasLiteralSuffix(path, "csproj")) {
e2.Element("SkipGetTargetFrameworkProperties", "true");
}
-
// Don't reference targets that don't produce any output.
- if (this->Configurations.empty() ||
- dt->GetManagedType(this->Configurations[0]) ==
- cmGeneratorTarget::ManagedType::Undefined) {
+ else if (this->Configurations.empty() ||
+ dt->GetManagedType(this->Configurations[0]) ==
+ cmGeneratorTarget::ManagedType::Undefined) {
e2.Element("ReferenceOutputAssembly", "false");
e2.Element("CopyToOutputDirectory", "Never");
}