| 762 | } |
| 763 | |
| 764 | bool HandleFileSetMode(cmExecutionStatus& status, |
| 765 | std::set<std::string> const& names, |
| 766 | std::string const& propertyName, |
| 767 | std::string const& propertyValue, bool appendAsString, |
| 768 | bool appendMode, bool remove, cmTarget* target) |
| 769 | { |
| 770 | for (std::string const& name : names) { |
| 771 | if (cmFileSet* fileSet = target->GetFileSet(name)) { |
| 772 | // Handle the current file set. |
| 773 | if (!HandleFileSet(fileSet, propertyName, propertyValue, appendAsString, |
| 774 | appendMode, remove)) { |
| 775 | return false; |
| 776 | } |
| 777 | } else { |
| 778 | status.SetError(cmStrCat("could not find FILE_SET ", name, |
| 779 | " for TARGET ", target->GetName(), |
| 780 | ". Perhaps it has not yet been created.")); |
| 781 | return false; |
| 782 | } |
| 783 | } |
| 784 | return true; |
| 785 | } |
| 786 | |
| 787 | bool HandleFileSet(cmFileSet* fileSet, std::string const& propertyName, |
| 788 | std::string const& propertyValue, bool appendAsString, |
no test coverage detected
searching dependent graphs…