| 441 | } |
| 442 | |
| 443 | bool HandleFileSetMode(cmExecutionStatus& status, std::string const& name, |
| 444 | OutType infoType, std::string const& variable, |
| 445 | std::string const& propertyName, cmTarget* target) |
| 446 | { |
| 447 | if (name.empty()) { |
| 448 | status.SetError("not given name for FILE_SET scope."); |
| 449 | return false; |
| 450 | } |
| 451 | |
| 452 | if (cmFileSet* fileSet = target->GetFileSet(name)) { |
| 453 | cmValue prop = fileSet->GetProperty(propertyName); |
| 454 | return StoreResult(infoType, status.GetMakefile(), variable, prop); |
| 455 | } |
| 456 | status.SetError(cmStrCat("could not find FILE_SET ", name, " for TARGET ", |
| 457 | target->GetName(), |
| 458 | ". Perhaps it has not yet been created.")); |
| 459 | return false; |
| 460 | } |
| 461 | |
| 462 | bool HandleSourceMode(cmExecutionStatus& status, std::string const& name, |
| 463 | OutType infoType, std::string const& variable, |
no test coverage detected
searching dependent graphs…