[CMake] File permissions on CONFIGURE_FILE output

Michael Wild themiwi at gmail.com
Wed Feb 3 07:21:15 EST 2010


You're right, I could have sworn that file(COPY...) has been around for ages ;-)


Michael

On 3. Feb, 2010, at 12:05 , Chris Hillery wrote:

> Whoops - I take it back. I see that it IS there in the 2.8 online docs, as a
> separate file(<COPY|INSTALL> entry as you said. Not terribly clear IMHO, but
> anyway. So I guess this is a new 2.8 feature (it really truly isn't there in
> 2.6.4).
> 
> Ceej
> aka Chris Hillery
> 
> On Wed, Feb 3, 2010 at 3:04 AM, Chris Hillery <chillery-cmake at lambda.nu>wrote:
> 
>> 
>> You probably didn't grep the man-page thoroughly ;-) It is documented as
>>> "file(<COPY|INSTALL>"
>>> 
>> 
>> I did, actually! It ain't there on the online manual:
>> 
>> http://www.cmake.org/cmake/help/cmake2.6docs.html#command:file
>> 
>> Moreover, your script doesn't work here with CMake 2.6.4. Maybe it was
>> added in CMake 2.8? I don't have that available for testing, but it's not in
>> the online documentation for 2.8 either:
>> 
>> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:file
>> 
>> I'm glad it's apparently been added, but I guess it must be a very new
>> thing!
>> 
>> So, tell me - are there any other features for generically modifying file
>> permissions without copying the file?
>> 
>> Ceej
>> aka Chris Hillery
>> 



More information about the CMake mailing list