|  | @@ -202,16 +202,19 @@ cmGlobalGenerator* cmGlobalXCodeGenerator::Factory
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  //----------------------------------------------------------------------------
 |  |  //----------------------------------------------------------------------------
 | 
											
												
													
														|  | -bool cmGlobalXCodeGenerator::SetGeneratorToolset(std::string const& ts)
 |  | 
 | 
											
												
													
														|  | 
 |  | +bool cmGlobalXCodeGenerator::SetGeneratorToolset(std::string const& ts,
 | 
											
												
													
														|  | 
 |  | +                                                 cmMakefile* mf)
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  |    if(this->XcodeVersion >= 30)
 |  |    if(this->XcodeVersion >= 30)
 | 
											
												
													
														|  |      {
 |  |      {
 | 
											
												
													
														|  |      this->GeneratorToolset = ts;
 |  |      this->GeneratorToolset = ts;
 | 
											
												
													
														|  | 
 |  | +    mf->AddDefinition("CMAKE_XCODE_PLATFORM_TOOLSET",
 | 
											
												
													
														|  | 
 |  | +                      this->GeneratorToolset.c_str());
 | 
											
												
													
														|  |      return true;
 |  |      return true;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    else
 |  |    else
 | 
											
												
													
														|  |      {
 |  |      {
 | 
											
												
													
														|  | -    return cmGlobalGenerator::SetGeneratorToolset(ts);
 |  | 
 | 
											
												
													
														|  | 
 |  | +    return cmGlobalGenerator::SetGeneratorToolset(ts, mf);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -239,11 +242,6 @@ void cmGlobalXCodeGenerator::EnableLanguage(std::vector<std::string>const&
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    mf->AddDefinition("CMAKE_GENERATOR_NO_COMPILER_ENV", "1");
 |  |    mf->AddDefinition("CMAKE_GENERATOR_NO_COMPILER_ENV", "1");
 | 
											
												
													
														|  | -  if(!this->GeneratorToolset.empty())
 |  | 
 | 
											
												
													
														|  | -    {
 |  | 
 | 
											
												
													
														|  | -    mf->AddDefinition("CMAKE_XCODE_PLATFORM_TOOLSET",
 |  | 
 | 
											
												
													
														|  | -                      this->GeneratorToolset.c_str());
 |  | 
 | 
											
												
													
														|  | -    }
 |  | 
 | 
											
												
													
														|  |    this->cmGlobalGenerator::EnableLanguage(lang, mf, optional);
 |  |    this->cmGlobalGenerator::EnableLanguage(lang, mf, optional);
 | 
											
												
													
														|  |      const char* osxArch =
 |  |      const char* osxArch =
 | 
											
												
													
														|  |        mf->GetDefinition("CMAKE_OSX_ARCHITECTURES");
 |  |        mf->GetDefinition("CMAKE_OSX_ARCHITECTURES");
 |