<font size=2 face="sans-serif">I tried your way Michael and liked the
simplicity of it, however, it seemed that CMake configuration would have
to run much more often in my case, because the file I want to append to
the configured file is a source/header file and it will be modified frequently
during development. I also didn't use the FILE(COPY) command because it
didn't seem to be able to change permissions on a file in-place, and I
didn't want to figure out a place to copy the file from or to that was
different than where it already was. It was just easier to use the FILE(READ),
FILE(REMOVE), FILE(WRITE) method suggested by Chris. </font>
<br>
<br><font size=2 face="sans-serif">Seems like a FILE(PERMISSIONS) command
would be useful.</font>
<br>
<br><font size=2 face="sans-serif">-------------------------------------------------------------<br>
Aaron Wright</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Michael Wild <themiwi@gmail.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Chris Hillery <chillery-cmake@lambda.nu></font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">cmake@cmake.org, Aaron_Wright@selinc.com</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">02/03/2010 04:21 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [CMake] File permissions on CONFIGURE_FILE
output</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">cmake-bounces@cmake.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>You're right, I could have sworn that file(COPY...)
has been around for ages ;-)<br>
<br>
<br>
Michael<br>
<br>
On 3. Feb, 2010, at 12:05 , Chris Hillery wrote:<br>
<br>
> Whoops - I take it back. I see that it IS there in the 2.8 online
docs, as a<br>
> separate file(<COPY|INSTALL> entry as you said. Not terribly
clear IMHO, but<br>
> anyway. So I guess this is a new 2.8 feature (it really truly isn't
there in<br>
> 2.6.4).<br>
> <br>
> Ceej<br>
> aka Chris Hillery<br>
> <br>
> On Wed, Feb 3, 2010 at 3:04 AM, Chris Hillery <chillery-cmake@lambda.nu>wrote:<br>
> <br>
>> <br>
>> You probably didn't grep the man-page thoroughly ;-) It is documented
as<br>
>>> "file(<COPY|INSTALL>"<br>
>>> <br>
>> <br>
>> I did, actually! It ain't there on the online manual:<br>
>> <br>
>> </font></tt><a href=http://www.cmake.org/cmake/help/cmake2.6docs.html#command:file><tt><font size=2>http://www.cmake.org/cmake/help/cmake2.6docs.html#command:file</font></tt></a><tt><font size=2><br>
>> <br>
>> Moreover, your script doesn't work here with CMake 2.6.4. Maybe
it was<br>
>> added in CMake 2.8? I don't have that available for testing, but
it's not in<br>
>> the online documentation for 2.8 either:<br>
>> <br>
>> </font></tt><a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:file"><tt><font size=2>http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:file</font></tt></a><tt><font size=2><br>
>> <br>
>> I'm glad it's apparently been added, but I guess it must be a
very new<br>
>> thing!<br>
>> <br>
>> So, tell me - are there any other features for generically modifying
file<br>
>> permissions without copying the file?<br>
>> <br>
>> Ceej<br>
>> aka Chris Hillery<br>
>> <br>
<br>
_______________________________________________<br>
Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
<br>
Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: </font></tt><a href=http://www.cmake.org/Wiki/CMake_FAQ><tt><font size=2>http://www.cmake.org/Wiki/CMake_FAQ</font></tt></a><tt><font size=2><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</font></tt><a href=http://www.cmake.org/mailman/listinfo/cmake><tt><font size=2>http://www.cmake.org/mailman/listinfo/cmake</font></tt></a><tt><font size=2><br>
</font></tt>
<br>