[CMake] cmake side effects: possible bug

Brad King brad.king at kitware.com
Thu Aug 24 14:37:06 EDT 2006


Brad King wrote:
> A completely different approach would be to make sure that
> myscript.pl.in has execute permission in the source tree.

...and a much simpler way is to not actually make them executable at all
but instead use FIND_PACKAGE(Perl) to get the perl executable and then
run the script by prepending ${PERL_EXECUTABLE} to the command line.
This has the advantage that perl need not be in the path at build time
and you can produce an error if perl is not installed.

-Brad


More information about the CMake mailing list