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.


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to