Supress standard error when running command

This commit is contained in:
Andy Cedilnik 2002-09-19 14:40:03 -04:00
parent b17cfc7584
commit 4027cfbb2d
1 changed files with 1 additions and 0 deletions

View File

@ -1392,6 +1392,7 @@ bool cmSystemTools::RunCommand(const char* command,
{
commandInDir = command;
}
commandInDir += " 2>&1";
command = commandInDir.c_str();
const int BUFFER_SIZE = 4096;
char buffer[BUFFER_SIZE];