MCPcopy Create free account
hub / github.com/Kitware/CMake / HandleFileSetMode

Function HandleFileSetMode

Source/cmSetPropertyCommand.cxx:764–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

762}
763
764bool 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
787bool HandleFileSet(cmFileSet* fileSet, std::string const& propertyName,
788 std::string const& propertyValue, bool appendAsString,

Callers 1

cmSetPropertyCommandFunction · 0.70

Calls 5

HandleFileSetFunction · 0.85
cmStrCatFunction · 0.70
GetFileSetMethod · 0.45
SetErrorMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…