cmMakeDirectoryCommand
| 8 | |
| 9 | // cmMakeDirectoryCommand |
| 10 | bool 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…