| 1517 | } |
| 1518 | |
| 1519 | void cmFindPackageCommand::AddFindDefinition(std::string const& var, |
| 1520 | cm::string_view const value) |
| 1521 | { |
| 1522 | if (cmValue old = this->Makefile->GetDefinition(var)) { |
| 1523 | this->OriginalDefs[var].exists = true; |
| 1524 | this->OriginalDefs[var].value = *old; |
| 1525 | } else { |
| 1526 | this->OriginalDefs[var].exists = false; |
| 1527 | } |
| 1528 | this->Makefile->AddDefinition(var, value); |
| 1529 | } |
| 1530 | |
| 1531 | void cmFindPackageCommand::RestoreFindDefinitions() |
| 1532 | { |
no test coverage detected