summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenericGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CPack/cmCPackGenericGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackGenericGenerator.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx
index 64b283c..1987a4d 100644
--- a/Source/CPack/cmCPackGenericGenerator.cxx
+++ b/Source/CPack/cmCPackGenericGenerator.cxx
@@ -653,7 +653,7 @@ int cmCPackGenericGenerator::ProcessGenerator()
tempDirectory = this->GetOption("CPACK_TOPLEVEL_DIRECTORY");
}
if ( !this->CompressFiles(tempPackageFileName,
- tempDirectory, gl.GetFiles()) )
+ tempDirectory, gl.GetFiles()) || cmSystemTools::GetErrorOccuredFlag())
{
cmCPackLogger(cmCPackLog::LOG_ERROR, "Problem compressing the directory"
<< std::endl);
@@ -695,7 +695,13 @@ int cmCPackGenericGenerator::Initialize(const char* name, cmMakefile* mf,
"Cannot initialize the generator" << std::endl);
return 0;
}
- return this->InitializeInternal();
+ int result = this->InitializeInternal();
+ if (cmSystemTools::GetErrorOccuredFlag())
+ {
+ return 0;
+ }
+
+ return result;
}
//----------------------------------------------------------------------