BUG: Prevent crash when no input file or generator specified
This commit is contained in:
parent
4a60db1184
commit
15ddcb424f
@ -306,7 +306,7 @@ int main (int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
|
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
|
||||||
"CPack generator not specified" << std::endl);
|
"CPack generator not specified" << std::endl);
|
||||||
parsed = 0;
|
return 1;
|
||||||
}
|
}
|
||||||
std::vector<std::string> generatorsVector;
|
std::vector<std::string> generatorsVector;
|
||||||
cmSystemTools::ExpandListArgument(genList,
|
cmSystemTools::ExpandListArgument(genList,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user