BUG: When exiting before the configure step in script mode we must account for cmSystemTools::GetErrorOccuredFlag() for the return code.

This commit is contained in:
Brad King 2005-08-08 09:37:29 -04:00
parent 2b5f4b0be4
commit ce52a0802f
1 changed files with 8 additions and 1 deletions

View File

@ -1347,7 +1347,14 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
// In script mode we terminate after running the script.
if(m_ScriptMode)
{
return 0;
if(cmSystemTools::GetErrorOccuredFlag())
{
return -1;
}
else
{
return 0;
}
}
this->PreLoadCMakeFiles();