[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 19:01:14 EDT 2011


> Would try to open the cmake_install.cmake file corresponding to the
offending
> install(file ...) You should find something like:
> 
> FILE(INSTALL <yourfile> DESTINATION <thedest>
>         FILE_PERMISSIONS <perms>)

This is not quite what I have. Instead, I have something like:

FILE(INSTALL DESTINATION <myDestination> TYPE FILE PERMISSIONS OWNER_READ
GROUP_READ WORLD_READ FILES <myFile>)

> You could try to craft a tryPermission.cmake file which mimics the command
> and execute only that part using
> 
> cmake -P tryPermission.cmake
> 
> and check whether if the permission is preserved or not.

I might have a go at it tomorrow, though I am no CMake/CPack expert (I just
learned enough about them to do what I needed to do), so we shall see.

> >> Could you try to build a sample project which exhibit the problem
> >> open a
> > bug
> >> report and attach the sample project to it ?
> >
> > I will try to do that tomorrow.
> 
> Ok thanks, this will be helpful.
> It may not be necessary if the previous steps shows that that
> FILE(INSTALL ....FILE_PERMISSIONS ... ) is not working, in this case send
us the
> script.
> 
> PS: beware not to drop the ML address

Yes, sorry about that!

Alan



More information about the CMake mailing list