diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-27 15:26:47 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-27 15:26:47 (GMT) |
commit | 15ddcb424f45bdd18de3abeb600c835f8047da09 (patch) | |
tree | 80799de511972c459de2ea5d1f1aba509e2146f5 | |
parent | 4a60db1184aabbd7e4bdc73836679f892036f854 (diff) | |
download | CMake-15ddcb424f45bdd18de3abeb600c835f8047da09.zip CMake-15ddcb424f45bdd18de3abeb600c835f8047da09.tar.gz CMake-15ddcb424f45bdd18de3abeb600c835f8047da09.tar.bz2 |
BUG: Prevent crash when no input file or generator specified
-rw-r--r-- | Source/CPack/cpack.cxx | 2 |
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, |