diff options
author | Brad King <brad.king@kitware.com> | 2019-01-28 15:32:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-28 16:16:02 (GMT) |
commit | 142e67eac64613a836dd21542963878104c9b088 (patch) | |
tree | 1e59f2a793d66394c58793408a86e847f31ce0d9 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | fc96aa03f8a3d3133aaddab27bfc0b684594558b (diff) | |
download | CMake-142e67eac64613a836dd21542963878104c9b088.zip CMake-142e67eac64613a836dd21542963878104c9b088.tar.gz CMake-142e67eac64613a836dd21542963878104c9b088.tar.bz2 |
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 9a8014c..4dae479 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"); |