cmake EXEC_PROGRAM merges stdout and stderr?

Brad King brad.king at kitware.com
Sat Feb 4 00:29:59 CET 2006


Brad King wrote:
> David Faure wrote:
>>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.

I've created a new EXECUTE_PROCESS command that should have everything 
you need.  It is included in the KDE CMake release I just announced:

http://www.cmake.org/files/v2.3/cmake-2.3.1-20060203-win32.exe
http://www.cmake.org/files/v2.3/cmake-2.3.1-20060203.tar.gz

-Brad


More information about the Kde-buildsystem mailing list