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

Method SetGeneratorToolset

Source/cmGlobalGenerator.cxx:213–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts, bool,
214 cmMakefile* mf)
215{
216 if (ts.empty()) {
217 return true;
218 }
219 std::ostringstream e;
220 /* clang-format off */
221 e <<
222 "Generator\n"
223 " " << this->GetName() << "\n"
224 "does not support toolset specification, but toolset\n"
225 " " << ts << "\n"
226 "was specified.";
227 /* clang-format on */
228 mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
229 return false;
230}
231
232std::string cmGlobalGenerator::SelectMakeProgram(
233 std::string const& inMakeProgram, std::string const& makeDefault) const

Callers 1

EnableLanguageMethod · 0.95

Calls 4

GetNameMethod · 0.95
strMethod · 0.80
emptyMethod · 0.45
IssueMessageMethod · 0.45

Tested by

no test coverage detected