diff options
Diffstat (limited to 'Source/cmMakeDirectoryCommand.cxx')
-rw-r--r-- | Source/cmMakeDirectoryCommand.cxx | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/Source/cmMakeDirectoryCommand.cxx b/Source/cmMakeDirectoryCommand.cxx index cc871c9..574dbf0 100644 --- a/Source/cmMakeDirectoryCommand.cxx +++ b/Source/cmMakeDirectoryCommand.cxx @@ -12,23 +12,20 @@ #include "cmMakeDirectoryCommand.h" // cmMakeDirectoryCommand -bool cmMakeDirectoryCommand -::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) +bool cmMakeDirectoryCommand::InitialPass(std::vector<std::string> const& args, + cmExecutionStatus&) { - if(args.size() != 1 ) - { + if (args.size() != 1) { this->SetError("called with incorrect number of arguments"); return false; - } - if ( !this->Makefile->CanIWriteThisFile(args[0].c_str()) ) - { - std::string e = "attempted to create a directory: " + args[0] - + " into a source directory."; - this->SetError(e); - cmSystemTools::SetFatalErrorOccured(); - return false; - } + } + if (!this->Makefile->CanIWriteThisFile(args[0].c_str())) { + std::string e = "attempted to create a directory: " + args[0] + + " into a source directory."; + this->SetError(e); + cmSystemTools::SetFatalErrorOccured(); + return false; + } cmSystemTools::MakeDirectory(args[0].c_str()); return true; } - |