[cmake-developers] Expected difference in execute_process between MSYS / UNIX

Richard Shaw hobbes1069 at gmail.com
Thu Oct 30 13:55:03 EDT 2014


I'm working on a big update to the FindFLTK module and I'm testing it on
all platforms I have access to.

One problem that took me quite a while to figure out was that on *nix
systems, execute_process works with shell scripts but on my MSYS2 install
it does not, I have to prefix the command with "sh" to make sure it
executes in a shell.

Is this known/expected?

Should I prefix shell scripts with "sh" in all cases and not count on it to
work? Or should I test for MSYS and only prefix the command with "sh" there?

Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141030/7fcff508/attachment.html>


More information about the cmake-developers mailing list