cmake EXEC_PROGRAM merges stdout and stderr?

Brad King brad.king at kitware.com
Fri Feb 3 16:35:40 CET 2006


David Faure wrote:
> On Friday 03 February 2006 16:04, Brad King wrote:
> 
>>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.
> 
> Trying to run uic3 and get its output into a .h file :)
> The current kde module for that does:
[snip]
> [...some regexp replacements on _uic_CONTENTS, and then...]

The replacement part prevents you from using the shell redirection 
directly, though you could redirect to a file and then read it with 
FILE(READ ...).  This could serve as a solution until a better 
EXEC_PROGRAM is available.

-Brad


More information about the Kde-buildsystem mailing list