[CMake] Redirect standard output to file
Pau Garcia i Quiles
pgquiles at elpauer.org
Fri Apr 13 15:03:20 EDT 2007
Hello,
mycommand 1>file 2>&1
That redirects stderr to stdout and then that joint stream to "file",
at least in Unix. I think it's the same in Win32.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)
Quoting Mathieu Malaterre <mathieu.malaterre at gmail.com>:
> 'lo
>
> I am convinced this is an easy one, but I could not figure out how
> to redirect standard output (from a process) into a file. Basically I
> would need to run EXECUTE_PROCESS from within an ADD_CUSTOM_COMMAND
> (run the process and capture output only when all the dependencies are
> met).
>
> -Thanks
>
> --
> Mathieu
> Tel: +33 6 32 13 33 40
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list