| 
					
				 | 
			
			
				@@ -606,11 +606,27 @@ cmGlobalVisualStudio10Generator::GetPlatformToolsetVersionString() const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const char* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 cmGlobalVisualStudio10Generator::GetPlatformToolsetHostArchitecture() const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  std::string const& hostArch = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this->GetPlatformToolsetHostArchitectureString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (hostArch.empty()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return nullptr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return hostArch.c_str(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+std::string const& 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+cmGlobalVisualStudio10Generator::GetPlatformToolsetHostArchitectureString() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (!this->GeneratorToolsetHostArchitecture.empty()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return this->GeneratorToolsetHostArchitecture.c_str(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return this->GeneratorToolsetHostArchitecture; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  return nullptr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (!this->DefaultPlatformToolsetHostArchitecture.empty()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return this->DefaultPlatformToolsetHostArchitecture; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  static std::string const empty; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return empty; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const char* cmGlobalVisualStudio10Generator::GetPlatformToolsetCuda() const 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -786,10 +802,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"); 
			 |