diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 1ffd4f7a0..08b414d40 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -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];