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

Johan Björk phb at spotify.com
Wed Jul 20 05:48:30 EDT 2011


Hi Brad,

Finally got around to fix this properly. Let me know what you think.

Cheers
/Johan

On Mon, May 16, 2011 at 6:58 PM, Brad King <brad.king at kitware.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110720/6fd68ad2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Replace-the-verbose-flag-in-cmSystemTools-RunSingleC.patch
Type: application/octet-stream
Size: 19416 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110720/6fd68ad2/attachment-0002.obj>


More information about the cmake-developers mailing list