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

Function cmMacroCommand

Source/cmMacroCommand.cxx:186–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool cmMacroCommand(std::vector<std::string> const& args,
187 cmExecutionStatus& status)
188{
189 if (args.empty()) {
190 status.SetError("called with incorrect number of arguments");
191 return false;
192 }
193
194 // create a function blocker
195 {
196 auto fb = cm::make_unique<cmMacroFunctionBlocker>();
197 cm::append(fb->Args, args);
198 status.GetMakefile().AddFunctionBlocker(std::move(fb));
199 }
200 return true;
201}

Callers

nothing calls this directly

Calls 6

appendFunction · 0.85
moveFunction · 0.85
AddFunctionBlockerMethod · 0.80
emptyMethod · 0.45
SetErrorMethod · 0.45
GetMakefileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…