diff options
author | Brad King <brad.king@kitware.com> | 2020-05-15 09:20:11 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-18 15:34:15 -0400 |
commit | 27ead9d4b77c3f84dd07e762aae3e2473beeb423 (patch) | |
tree | e961ec711b5bd173e67bc894fe3835dbc25bf666 /Source | |
parent | 1222327c897437dd674a7f278aebeaec44366bb0 (diff) | |
download | cmake-27ead9d4b77c3f84dd07e762aae3e2473beeb423.tar.gz |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 4e1cc5592b..df960b5cdb 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/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"); } |