MCPcopy Create free account
hub / github.com/Kitware/CMake / SetGeneratorToolset

Method SetGeneratorToolset

Source/cmGlobalXCodeGenerator.cxx:370–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370bool 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
387bool cmGlobalXCodeGenerator::ParseGeneratorToolset(std::string const& ts,
388 cmMakefile* mf)

Callers

nothing calls this directly

Calls 4

ParseGeneratorToolsetMethod · 0.95
cmXcodeBuildSystemStringFunction · 0.85
emptyMethod · 0.45
AddDefinitionMethod · 0.45

Tested by

no test coverage detected