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

Method SetGeneratorPlatform

Source/cmGlobalGenerator.cxx:193–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
194 cmMakefile* mf)
195{
196 if (p.empty()) {
197 return true;
198 }
199
200 std::ostringstream e;
201 /* clang-format off */
202 e <<
203 "Generator\n"
204 " " << this->GetName() << "\n"
205 "does not support platform specification, but platform\n"
206 " " << p << "\n"
207 "was specified.";
208 /* clang-format on */
209 mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
210 return false;
211}
212
213bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts, bool,
214 cmMakefile* mf)

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