diff options
author | Brad King <brad.king@kitware.com> | 2019-01-28 10:32:06 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-28 11:16:02 -0500 |
commit | 142e67eac64613a836dd21542963878104c9b088 (patch) | |
tree | 1e59f2a793d66394c58793408a86e847f31ce0d9 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | fc96aa03f8a3d3133aaddab27bfc0b684594558b (diff) | |
download | cmake-142e67eac64613a836dd21542963878104c9b088.tar.gz |
VS: Use internal abstraction for VCTargetsPath host arch
Call our internal host architecture lookup method rather than directly
accessing a member used by its implementation.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index 9a8014cc13..4dae479013 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -786,10 +786,9 @@ bool cmGlobalVisualStudio10Generator::FindVCTargetsPath(cmMakefile* mf) } cmXMLElement(eprj, "Import") .Attribute("Project", "$(VCTargetsPath)\\Microsoft.Cpp.Default.props"); - if (!this->GeneratorToolsetHostArchitecture.empty()) { + if (const char* hostArch = this->GetPlatformToolsetHostArchitecture()) { cmXMLElement epg(eprj, "PropertyGroup"); - cmXMLElement(epg, "PreferredToolArchitecture") - .Content(this->GeneratorToolsetHostArchitecture); + cmXMLElement(epg, "PreferredToolArchitecture").Content(hostArch); } { cmXMLElement epg(eprj, "PropertyGroup"); |