summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-01-22 18:56:13 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-01-22 18:56:13 (GMT)
commit6bf31875ce3a87078ba3e90ce2e8cde44d561d86 (patch)
tree8be2d7b83f49f1028ddebea3d7197cffe8c990a2 /Source/CPack/cpack.cxx
parentc332e0bf3c4e619358322bd0d0961af45653eb5b (diff)
downloadCMake-6bf31875ce3a87078ba3e90ce2e8cde44d561d86.zip
CMake-6bf31875ce3a87078ba3e90ce2e8cde44d561d86.tar.gz
CMake-6bf31875ce3a87078ba3e90ce2e8cde44d561d86.tar.bz2
BUG: Fix issue #8383. Avoid crashing when using the Bundle CPack generator and CPACK_BUNDLE_NAME is not set. Instead, fail gracefully giving an informative error message and non-zero exit code.
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 330d61f..51001aa 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -474,5 +474,10 @@ int main (int argc, char *argv[])
#define cout no_cout_use_cmCPack_Log
}
+ if (cmSystemTools::GetErrorOccuredFlag())
+ {
+ return 1;
+ }
+
return 0;
}