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:
parent
2b5f4b0be4
commit
ce52a0802f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue