[CMake] Overwritting read-only files when installing

Daniel Tavares daniel.tavares at slipg8.com
Fri Jun 5 14:38:28 EDT 2009


Hello fellow CMakers,

 

Is there any way to make the install step fail if the destination file
that is being overwritten is read-only?

 

I need to copy the built target from the off-source folder to a folder
under source control. And one of my options is to have the developer
build the INSTALL target, which will copy the file to the directory
where it needs to be checked-in from.

 

If this is not possible, I'd appreciate any suggestions. My plan B is to
have a python script that will copy the file.

 

Thanks,

Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090605/02fa02a8/attachment.htm>


More information about the CMake mailing list