cmake EXEC_PROGRAM merges stdout and stderr?

Brad King brad.king at kitware.com
Fri Feb 3 16:04:38 CET 2006


David Faure wrote:
> Thanks for the info, but in practical terms, does this mean there is no way to
> fix this problem without changing cmake itself?
> Is there maybe something else than EXEC_PROGRAM (or something else than OUTPUT_VARIABLE)
> which we can use to run a command and put its output into a file?
> I guess adding " > foo.h" to the command won't work since there's probably no shell involved...

In fact there is a shell involved and that is why updating it to a newer 
process execution implementation is hard.  That syntax will work fine 
and the output will go to foo.h.  What are you trying to do with this? 
There may be another way.

-Brad


More information about the Kde-buildsystem mailing list