diff options
-rw-r--r-- | Source/cmFileCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index b3c3ac1..d29e421 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -1192,6 +1192,10 @@ bool cmFileInstaller::InstallDirectory(const char* source, // Make sure the destination directory exists. if(!cmSystemTools::MakeDirectory(destination)) { + cmOStringStream e; + e << "INSTALL cannot make directory \"" << destination << "\": " + << cmSystemTools::GetLastSystemError(); + this->FileCommand->SetError(e.str().c_str()); return false; } |