| 356 | } |
| 357 | |
| 358 | bool HandleGlobalMode(cmExecutionStatus& status, std::string const& name, |
| 359 | OutType infoType, std::string const& variable, |
| 360 | std::string const& propertyName) |
| 361 | { |
| 362 | if (!name.empty()) { |
| 363 | status.SetError("given name for GLOBAL scope."); |
| 364 | return false; |
| 365 | } |
| 366 | |
| 367 | // Get the property. |
| 368 | cmake* cm = status.GetMakefile().GetCMakeInstance(); |
| 369 | return StoreResult(infoType, status.GetMakefile(), variable, |
| 370 | cm->GetState()->GetGlobalProperty(propertyName)); |
| 371 | } |
| 372 | |
| 373 | bool HandleDirectoryMode(cmExecutionStatus& status, std::string const& name, |
| 374 | OutType infoType, std::string const& variable, |
no test coverage detected
searching dependent graphs…