| 1425 | } |
| 1426 | |
| 1427 | bool 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 | |
| 1448 | bool cmGlobalGenerator::Compute() |
| 1449 | { |
no test coverage detected