[CMake] How do I set generated scripts executable in CMakeLists.txt?

Bill Lorensen bill.lorensen at gmail.com
Thu Dec 10 23:27:42 EST 2009


I believe the output file has the same permissions as the input file.
So if you make the input executable, the output will also be
executable.


On Thu, Dec 10, 2009 at 5:09 PM, kent williams
<nkwmailinglists at gmail.com> wrote:
> Say I generate a script using CONFIGURE_FILE.  How would I make it
> executable?  In other words, is there a CMake way of doing this that
> will work on all CMake platforms?
>
> The way we deal with portability in our particular case is to use Tcl
> scripts.  Our stuff won't work on any platform without tcl, so tclsh
> is the 'most portable' script processor.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list