<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 &lt;themiwi@gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Chris Hillery &lt;chillery-cmake@lambda.nu&gt;</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>
&gt; Whoops - I take it back. I see that it IS there in the 2.8 online
docs, as a<br>
&gt; separate file(&lt;COPY|INSTALL&gt; entry as you said. Not terribly
clear IMHO, but<br>
&gt; anyway. So I guess this is a new 2.8 feature (it really truly isn't
there in<br>
&gt; 2.6.4).<br>
&gt; <br>
&gt; Ceej<br>
&gt; aka Chris Hillery<br>
&gt; <br>
&gt; On Wed, Feb 3, 2010 at 3:04 AM, Chris Hillery &lt;chillery-cmake@lambda.nu&gt;wrote:<br>
&gt; <br>
&gt;&gt; <br>
&gt;&gt; You probably didn't grep the man-page thoroughly ;-) It is documented
as<br>
&gt;&gt;&gt; &quot;file(&lt;COPY|INSTALL&gt;&quot;<br>
&gt;&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; I did, actually! It ain't there on the online manual:<br>
&gt;&gt; <br>
&gt;&gt; </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>
&gt;&gt; <br>
&gt;&gt; Moreover, your script doesn't work here with CMake 2.6.4. Maybe
it was<br>
&gt;&gt; added in CMake 2.8? I don't have that available for testing, but
it's not in<br>
&gt;&gt; the online documentation for 2.8 either:<br>
&gt;&gt; <br>
&gt;&gt; </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>
&gt;&gt; <br>
&gt;&gt; I'm glad it's apparently been added, but I guess it must be a
very new<br>
&gt;&gt; thing!<br>
&gt;&gt; <br>
&gt;&gt; So, tell me - are there any other features for generically modifying
file<br>
&gt;&gt; permissions without copying the file?<br>
&gt;&gt; <br>
&gt;&gt; Ceej<br>
&gt;&gt; aka Chris Hillery<br>
&gt;&gt; <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>