[CMake] Reading from stdin during exec_program
develop at wang-nielsen.dk
develop at wang-nielsen.dk
Mon Mar 5 01:43:12 EST 2007
Thanks, EXECUTE_PROCESS work just fine.
I have been using the book for command reference, I will stop doing that.
Thanks again.
Regards - ThomaS
-----Original Message-----
From: cmake-bounces+develop=wang-nielsen.dk at cmake.org
[mailto:cmake-bounces+develop=wang-nielsen.dk at cmake.org] On Behalf Of Filipe
Sousa
Sent: 4. marts 2007 00:59
To: cmake at cmake.org
Subject: Re: [CMake] Reading from stdin during exec_program
develop at wang-nielsen.dk wrote:
> Hi there,
>
> I am having some problems reading from stdin, from an external program
> executed using the exec_program command.
>
> The external program is a c++ program just reading a string from
> stdin(actually reading one line), and writing something to stdout. When
this
> program is runned on its own it works just fine.
>
> But when it is runned using the exec_program command, the external program
> just stall when is starts reading from stdin, just as if the input never
> reaches the external program.
>
> I would very much appreciate any kind of help.
>
>
> Regards - ThomaS
>
EXEC_PROGRAM is deprecated. Try EXECUTE_PROCESS().
--
Filipe Sousa
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list