[CMake] File permissions
Bill Hoffman
bill.hoffman at kitware.com
Fri Jan 18 14:34:08 EST 2008
Radu Serban wrote:
> I generate a script (shell on *nix, *.bat on windows) using FILE(WRITE
> which I then install using INSTALL(PROGRAMS so that the permissions are
> set properly. However, I'd like to first test it from within CMake using
> EXECUTE_PROCESS but that obviously fails since the script does not have
> execute permission at this stage.
> Any suggestions?
> Thanks,
You could test it by running the shell directly. execute_process will
not execute a shell script anyway. So, you would need /bin/bash
yourscript.sh or something like that.
-Bill
More information about the CMake
mailing list