[CMake] Causing cmake to use stderr instead of stdout.

Josef Karthauser joe.karthauser at geomerics.com
Mon Nov 19 11:58:33 EST 2007


:) Sure I can do that.  However I was trying to use 'dos'.  World of
pain.  Using cygwin's bourne shell instead :).

Joe

> -----Original Message-----
> From: cmake-bounces+joe.karthauser=geomerics.com at cmake.org
> [mailto:cmake-bounces+joe.karthauser=geomerics.com at cmake.org] On
Behalf
> Of Dizzy
> Sent: 19 November 2007 16:48
> To: cmake at cmake.org
> Subject: Re: [CMake] Causing cmake to use stderr instead of stdout.
> 
> On Monday 19 November 2007 18:37:02 Josef Karthauser wrote:
> > Is it possible (with relative easy) to have cmake send all output to
> > stderr instead of stdout?
> 
> Well on a bourne shell I think you can do:
> 
> cmake /path/to/sources 1>&2
> 
> And it will run cmake redirecting fd 1 (stdout) to fd 2 (stderr). If
> you need
> to further direct the output make sure you write that before "1>&2"
> part as
> in:
> 
> cmake /path/to/sources 2> logfile.txt 1>&2
> 
> --
> Mihai RUSU					Email: dizzy at roedu.net
> 			"Linux is obsolete" -- AST
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list