[CMake] How to work around permission deficiencies of file(GENERATE...)?
Stephen Kelly
steveire at gmail.com
Thu Apr 30 13:54:19 EDT 2015
Alan W. Irwin wrote:
> However, until that is implemented (or configure_file(GENERATE ...) is
> implemented with the usual configure_file permission semantics which
> just copies the permissions of the source file) I need a method of
> setting file permissions at generate time. Is there currently _any_
> way to do that under CMake?
Yes, CMake 3.2 uses the permissions of the input file if present:
http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=81afbbc0
I recommend trying that for your use, and if it works, I think setting
CMP0026 to OLD for CMake >= 3.0 && < 3.2 would be ok.
Thanks,
Steve.
More information about the CMake
mailing list