summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-27 15:26:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-27 15:26:47 (GMT)
commit15ddcb424f45bdd18de3abeb600c835f8047da09 (patch)
tree80799de511972c459de2ea5d1f1aba509e2146f5 /Source/CPack/cpack.cxx
parent4a60db1184aabbd7e4bdc73836679f892036f854 (diff)
downloadCMake-15ddcb424f45bdd18de3abeb600c835f8047da09.zip
CMake-15ddcb424f45bdd18de3abeb600c835f8047da09.tar.gz
CMake-15ddcb424f45bdd18de3abeb600c835f8047da09.tar.bz2
BUG: Prevent crash when no input file or generator specified
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index d917c88..e1ab872 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -306,7 +306,7 @@ int main (int argc, char *argv[])
{
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
"CPack generator not specified" << std::endl);
- parsed = 0;
+ return 1;
}
std::vector<std::string> generatorsVector;
cmSystemTools::ExpandListArgument(genList,