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

Method SetGeneratorInstance

Source/cmGlobalGenerator.cxx:173–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171#endif
172
173bool cmGlobalGenerator::SetGeneratorInstance(std::string const& i,
174 cmMakefile* mf)
175{
176 if (i.empty()) {
177 return true;
178 }
179
180 std::ostringstream e;
181 /* clang-format off */
182 e <<
183 "Generator\n"
184 " " << this->GetName() << "\n"
185 "does not support instance specification, but instance\n"
186 " " << i << "\n"
187 "was specified.";
188 /* clang-format on */
189 mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
190 return false;
191}
192
193bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
194 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