| 539 | } |
| 540 | |
| 541 | bool HandleCacheMode(cmExecutionStatus& status, std::string const& name, |
| 542 | OutType infoType, std::string const& variable, |
| 543 | std::string const& propertyName) |
| 544 | { |
| 545 | if (name.empty()) { |
| 546 | status.SetError("not given name for CACHE scope."); |
| 547 | return false; |
| 548 | } |
| 549 | |
| 550 | cmValue value = nullptr; |
| 551 | if (status.GetMakefile().GetState()->GetCacheEntryValue(name)) { |
| 552 | value = status.GetMakefile().GetState()->GetCacheEntryProperty( |
| 553 | name, propertyName); |
| 554 | } |
| 555 | StoreResult(infoType, status.GetMakefile(), variable, value); |
| 556 | return true; |
| 557 | } |
| 558 | |
| 559 | bool HandleInstallMode(cmExecutionStatus& status, std::string const& name, |
| 560 | OutType infoType, std::string const& variable, |
no test coverage detected
searching dependent graphs…