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
@ -1346,9 +1346,16 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
|
|||||||
|
|
||||||
// In script mode we terminate after running the script.
|
// In script mode we terminate after running the script.
|
||||||
if(m_ScriptMode)
|
if(m_ScriptMode)
|
||||||
|
{
|
||||||
|
if(cmSystemTools::GetErrorOccuredFlag())
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this->PreLoadCMakeFiles();
|
this->PreLoadCMakeFiles();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user