execute_process() does not have INPUT_VARIABLE
The execute_process()
command does have the options
- INPUT_FILE, OUTPUT_FILE, ERROR_FILE
- OUTPUT_VARIABLE, ERROR_VARIABLE
What's obviously missing from this list is an option INPUT_VARIABLE
that takes a cmake variable and provides it on stdin.
This would for example allow to use the output of one command run via execute_process()
as input of a second command run via execute_process()
without the need for creating temporary intermediate files.
Similar behavior could be achieved by using the automatic piping of output between consecutive COMMAND
s of a single call to execute_process()
but that usage is currently impossible due to #16837 in many cases.