| 828 | |
| 829 | template <typename ValueType> |
| 830 | void UsageRequirementProperty::WriteDirect( |
| 831 | cmTargetInternals const* impl, cm::optional<cmListFileBacktrace> const& bt, |
| 832 | ValueType value, Action action) |
| 833 | { |
| 834 | if (action == Action::Set) { |
| 835 | this->Entries.clear(); |
| 836 | } |
| 837 | if (value) { |
| 838 | cmListFileBacktrace lfbt = impl->GetBacktrace(bt); |
| 839 | if (action == Action::Prepend) { |
| 840 | this->Entries.emplace(this->Entries.begin(), value, lfbt); |
| 841 | } else if (action == Action::Set || cmNonempty(value) || |
| 842 | this->AppendBehavior == AppendEmpty::Yes) { |
| 843 | this->Entries.emplace_back(value, lfbt); |
| 844 | } |
| 845 | } |
| 846 | } |
| 847 | |
| 848 | void UsageRequirementProperty::WriteDirect(BT<std::string> value, |
| 849 | Action action) |
no test coverage detected