Browse Source

BUG: Prevent crash when no input file or generator specified

Andy Cedilnik 19 years ago
parent
commit
15ddcb424f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/CPack/cpack.cxx

+ 1 - 1
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,