From the documentation:

https://cmake.org/cmake/help/v3.12/command/execute_process.html

CMake executes the child process using operating system APIs directly. All arguments are passed VERBATIM to the child process. No intermediate shell is used, so shell operators such as > are treated as normal arguments. (Use the INPUT_, OUTPUT_, and ERROR_* options to redirect stdin, stdout, and stderr.)

In other words, you can’t use “>” redirection with execute_process() like you’re doing.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top