[cmake-developers] Avoid merging stderr/stdout in RunSingleCommand

Brad King brad.king at kitware.com
Mon May 16 12:58:06 EDT 2011


On 05/16/2011 10:05 AM, Johan Björk wrote:
> Would it be possible to change the verbose flag to output the results
> on the corresponding stream as it was read on?

Instead replace the verbose boolean with an enumeration that chooses
among off, on, or split verbosity.

> I don't quite understand the StdoutCallback and Error callbacks inside
> cmSystemTools. Anyone can tell me what they are used for?

IIRC they're used inside cmake-gui to capture the output of child
processes for display in the window instead of the real stdout and
stderr.

> See attached patch. Not sure if I propose it, as it will break for
> anyone expecting all output in stdout. I guess we could introduce a
> --no-merge-output or something flag.

That makes sense.  The flag would just map through to the proper
argument of RunSingleCommand.

-Brad



More information about the cmake-developers mailing list