[cmake-developers] Where execute_process INPUT_CONTENT or INPUT_VARIABLE?

Brad King brad.king at kitware.com
Mon Apr 24 09:03:55 EDT 2017


On 04/23/2017 01:30 AM, Konstantin Podsvirov wrote:
> Where execute_process INPUT_CONTENT or INPUT_VARIABLE?
> 
> This would be very convenient for a small input.
> 
> Why should I always write a file for input?

I agree that the options should be there but they can't be easily
implemented without choosing our own temporary file which will have
its own problems.

The reason is that our internal process execution implementation
does not support communication from the parent on stdin.  Fixing
that is not something I'm prepared to do or even accept as a
contribution because I'd rather migrate to libuv than extend our
own process management implementation further.  That is a more
long-term process so in the meantime I think it is best to just
ask projects to use INPUT_FILE.

-Brad



More information about the cmake-developers mailing list