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

Function cmMakeDirectoryCommand

Source/cmMakeDirectoryCommand.cxx:10–26  ·  view source on GitHub ↗

cmMakeDirectoryCommand

Source from the content-addressed store, hash-verified

8
9// cmMakeDirectoryCommand
10bool cmMakeDirectoryCommand(std::vector<std::string> const& args,
11 cmExecutionStatus& status)
12{
13 if (args.size() != 1) {
14 status.SetError("called with incorrect number of arguments");
15 return false;
16 }
17 if (!status.GetMakefile().CanIWriteThisFile(args[0])) {
18 std::string e = "attempted to create a directory: " + args[0] +
19 " into a source directory.";
20 status.SetError(e);
21 cmSystemTools::SetFatalErrorOccurred();
22 return false;
23 }
24 cmSystemTools::MakeDirectory(args[0]);
25 return true;
26}

Callers

nothing calls this directly

Calls 4

CanIWriteThisFileMethod · 0.80
sizeMethod · 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…