Commit 142e67ea authored by Brad King's avatar Brad King
Browse files

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.
parent fc96aa03
......@@ -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")
cmXMLElement(epg, "PreferredToolArchitecture").Content(hostArch);
cmXMLElement epg(eprj, "PropertyGroup");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment