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

Function HandleAppendCommand

Source/cmListCommand.cxx:155–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool HandleAppendCommand(std::vector<std::string> const& args,
156 cmExecutionStatus& status)
157{
158 assert(args.size() >= 2);
159
160 // Skip if nothing to append.
161 if (args.size() < 3) {
162 return true;
163 }
164
165 cmMakefile& makefile = status.GetMakefile();
166 std::string const& listName = args[1];
167 // expand the variable
168 std::string listString;
169 GetListString(listString, listName, makefile);
170
171 makefile.AddDefinition(
172 listName, cmList::append(listString, args.begin() + 2, args.end()));
173 return true;
174}
175
176bool HandlePrependCommand(std::vector<std::string> const& args,
177 cmExecutionStatus& status)

Callers

nothing calls this directly

Calls 7

GetListStringFunction · 0.85
appendFunction · 0.85
sizeMethod · 0.45
GetMakefileMethod · 0.45
AddDefinitionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…