| 
					
				 | 
			
			
				@@ -436,6 +436,9 @@ bool cmGlobalVisualStudioVersionedGenerator::MatchesGeneratorName( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 bool cmGlobalVisualStudioVersionedGenerator::SetGeneratorInstance( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   std::string const& i, cmMakefile* mf) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (this->GeneratorInstance && i == *(this->GeneratorInstance)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (!i.empty()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (!this->vsSetupAPIHelper.SetVSInstance(i)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       std::ostringstream e; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -472,6 +475,9 @@ bool cmGlobalVisualStudioVersionedGenerator::SetGeneratorInstance( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        cmStateEnums::INTERNAL); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // The selected instance may have a different MSBuild than previously found. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  this->MSBuildCommandInitialized = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |