diff options
author | Brad King <brad.king@kitware.com> | 2020-05-15 13:20:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-18 19:34:15 (GMT) |
commit | 27ead9d4b77c3f84dd07e762aae3e2473beeb423 (patch) | |
tree | e961ec711b5bd173e67bc894fe3835dbc25bf666 /Source | |
parent | 1222327c897437dd674a7f278aebeaec44366bb0 (diff) | |
download | CMake-27ead9d4b77c3f84dd07e762aae3e2473beeb423.zip CMake-27ead9d4b77c3f84dd07e762aae3e2473beeb423.tar.gz CMake-27ead9d4b77c3f84dd07e762aae3e2473beeb423.tar.bz2 |
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 4e1cc55..df960b5 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"); } |