[CMake] CMake/CPack 2.8.4 - Windows - Can't package files as read-only?

Alan Garny alan.garny at dpag.ox.ac.uk
Thu Apr 28 13:02:26 EDT 2011


Hi, I am using CMake/CPack (version 2.8.4) for my project and everything
works fine except for a couple of files that I am trying to package on
Windows. I would like those files to be read-only. I currently have
something like:

 

INSTALL(FILES ${CMAKE_SOURCE_DIR}/myFile DESTINATION myDestination
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)

 

and it works perfectly fine on Linux and Mac OS X, but not on Windows (using
either ZIP or NSIS). Any idea why this would be the case? Just for testing
purposes, I also tried

 

INSTALL(FILES ${CMAKE_SOURCE_DIR}/myFile DESTINATION myDestination)

 

since the files are originally read-only, but to no avail.

 

Cheers, Alan.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110428/3cd47e79/attachment.htm>


More information about the CMake mailing list