ENH: Allow running without config file
This commit is contained in:
parent
01a55559dd
commit
2e19553e7c
|
@ -234,11 +234,14 @@ int main (int argc, char *argv[])
|
|||
|
||||
if ( parsed && !help )
|
||||
{
|
||||
if ( cmSystemTools::FileExists(cpackConfigFile.c_str()) && !mf->ReadListFile(0, cpackConfigFile.c_str()) )
|
||||
if ( cmSystemTools::FileExists(cpackConfigFile.c_str()) )
|
||||
{
|
||||
if ( !mf->ReadListFile(0, cpackConfigFile.c_str()) )
|
||||
{
|
||||
cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "Problem reding CPack config file: \"" << cpackConfigFile.c_str() << "\"" << std::endl);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
else if ( cpackConfigFileSpecified )
|
||||
{
|
||||
cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "Cannot find CPack config file: \"" << cpackConfigFile.c_str() << "\"" << std::endl);
|
||||
|
|
Loading…
Reference in New Issue