BUG: Do not call cmsysProcess_GetErrorString unless GetState returns State_Error.
This commit is contained in:
parent
ae69928e69
commit
bcd4f87414
|
@ -436,7 +436,7 @@ bool cmSystemTools::RunSingleCommand(
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Error)
|
||||
{
|
||||
std::cerr << cmsysProcess_GetErrorString(cp) << "\n";
|
||||
result = false;
|
||||
|
|
Loading…
Reference in New Issue