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

Method UnsupportedVariableIsDefined

Source/cmGlobalGenerator.cxx:1427–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1425}
1426
1427bool cmGlobalGenerator::UnsupportedVariableIsDefined(std::string const& name,
1428 bool supported) const
1429{
1430 if (!supported && this->Makefiles.front()->GetDefinition(name)) {
1431 std::ostringstream e;
1432 /* clang-format off */
1433 e <<
1434 "Generator\n"
1435 " " << this->GetName() << "\n"
1436 "does not support variable\n"
1437 " " << name << "\n"
1438 "but it has been specified."
1439 ;
1440 /* clang-format on */
1441 this->GetCMakeInstance()->IssueMessage(MessageType::FATAL_ERROR, e.str());
1442 return true;
1443 }
1444
1445 return false;
1446}
1447
1448bool cmGlobalGenerator::Compute()
1449{

Callers 1

ComputeMethod · 0.95

Calls 6

GetNameMethod · 0.95
GetCMakeInstanceMethod · 0.95
strMethod · 0.80
GetDefinitionMethod · 0.45
frontMethod · 0.45
IssueMessageMethod · 0.45

Tested by

no test coverage detected