| 4415 | } |
| 4416 | |
| 4417 | void cmake::RunCheckForUnusedVariables() |
| 4418 | { |
| 4419 | #ifndef CMAKE_BOOTSTRAP |
| 4420 | bool haveUnused = false; |
| 4421 | std::ostringstream msg; |
| 4422 | msg << "Manually-specified variables were not used by the project:"; |
| 4423 | for (auto const& it : this->UsedCliVariables) { |
| 4424 | if (!it.second) { |
| 4425 | haveUnused = true; |
| 4426 | msg << "\n " << it.first; |
| 4427 | } |
| 4428 | } |
| 4429 | if (haveUnused) { |
| 4430 | this->IssueMessage(MessageType::WARNING, msg.str()); |
| 4431 | } |
| 4432 | #endif |
| 4433 | } |
| 4434 | |
| 4435 | bool cmake::GetSuppressDevWarnings() const |
| 4436 | { |
no test coverage detected