| 368 | } |
| 369 | |
| 370 | bool cmGlobalXCodeGenerator::SetGeneratorToolset(std::string const& ts, |
| 371 | bool build, cmMakefile* mf) |
| 372 | { |
| 373 | if (!this->ParseGeneratorToolset(ts, mf)) { |
| 374 | return false; |
| 375 | } |
| 376 | if (build) { |
| 377 | return true; |
| 378 | } |
| 379 | if (!this->GeneratorToolset.empty()) { |
| 380 | mf->AddDefinition("CMAKE_XCODE_PLATFORM_TOOLSET", this->GeneratorToolset); |
| 381 | } |
| 382 | mf->AddDefinition("CMAKE_XCODE_BUILD_SYSTEM", |
| 383 | cmXcodeBuildSystemString(this->XcodeBuildSystem)); |
| 384 | return true; |
| 385 | } |
| 386 | |
| 387 | bool cmGlobalXCodeGenerator::ParseGeneratorToolset(std::string const& ts, |
| 388 | cmMakefile* mf) |
nothing calls this directly
no test coverage detected