Supress standard error when running command
This commit is contained in:
parent
b17cfc7584
commit
4027cfbb2d
|
@ -1392,6 +1392,7 @@ bool cmSystemTools::RunCommand(const char* command,
|
||||||
{
|
{
|
||||||
commandInDir = command;
|
commandInDir = command;
|
||||||
}
|
}
|
||||||
|
commandInDir += " 2>&1";
|
||||||
command = commandInDir.c_str();
|
command = commandInDir.c_str();
|
||||||
const int BUFFER_SIZE = 4096;
|
const int BUFFER_SIZE = 4096;
|
||||||
char buffer[BUFFER_SIZE];
|
char buffer[BUFFER_SIZE];
|
||||||
|
|
Loading…
Reference in New Issue