| 739 | } |
| 740 | |
| 741 | bool HandleTarget(cmTarget* target, cmMakefile& makefile, |
| 742 | std::string const& propertyName, |
| 743 | std::string const& propertyValue, bool appendAsString, |
| 744 | bool appendMode, bool remove) |
| 745 | { |
| 746 | // Set or append the property. |
| 747 | if (appendMode) { |
| 748 | target->AppendProperty(propertyName, propertyValue, |
| 749 | makefile.GetBacktrace(), appendAsString); |
| 750 | } else { |
| 751 | if (remove) { |
| 752 | target->SetProperty(propertyName, nullptr); |
| 753 | } else { |
| 754 | target->SetProperty(propertyName, propertyValue); |
| 755 | } |
| 756 | } |
| 757 | |
| 758 | // Check the resulting value. |
| 759 | target->CheckProperty(propertyName, &makefile); |
| 760 | |
| 761 | return true; |
| 762 | } |
| 763 | |
| 764 | bool HandleFileSetMode(cmExecutionStatus& status, |
| 765 | std::set<std::string> const& names, |
no test coverage detected
searching dependent graphs…