Thanks! I wouldn&#39;t call CMake confusing, but it sure is unpredictable in how things are laid out :P<br clear="all"><div><br></div><div>---------</div>Robert Dailey<br>
<br><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 10:14 AM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
See the docs for:<br>
<br>
string(CONFIGURE ...)<br>
<br>
  <a href="http://cmake.org/cmake/help/cmake-2-8-docs.html#command:string" target="_blank">http://cmake.org/cmake/help/cmake-2-8-docs.html#command:string</a><br>
<br>
That should help... :-)<br>
<br>
<br>
David<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Jan 20, 2012 at 11:09 AM, Robert Dailey &lt;<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m trying to develop some scripts that will take a portion of the<br>
&gt; vcproj.user file, specifically the &lt;Configuration&gt; portion, which is located<br>
&gt; in a separate file, and append it (N) number of times to a file, where N<br>
&gt; equals the number of configurations we have.<br>
&gt;<br>
&gt; Ideally I will start by using file() to read the entire contents of the<br>
&gt; file. After that, I need to configure the string to replace this:<br>
&gt;<br>
&gt; Name=&quot;${configuration}|Win32&quot;<br>
&gt;<br>
&gt; so that it looks like so (for the debug configuration):<br>
&gt;<br>
&gt; Name=&quot;Debug|Win32&quot;<br>
&gt;<br>
&gt; After that, I need to append the contents of this string to another file,<br>
&gt; which will be the final vcproj.user file.<br>
&gt;<br>
&gt; I can&#39;t use a file to configure this because of the way I&#39;ll be appending<br>
&gt; the contents, and I can&#39;t replace on the final file itself because there<br>
&gt; will be multiple ${configuration} variables, but they will each need to be<br>
&gt; assigned a different value.<br>
&gt;<br>
&gt; The only solution I see for this is to have a configure_string() function,<br>
&gt; which behaves exactly like configure_file() except input &amp; output are string<br>
&gt; variables instead of files.<br>
&gt;<br>
&gt; Any thoughts on this? Workarounds?<br>
&gt;<br>
&gt; ---------<br>
&gt; Robert Dailey<br>
&gt;<br>
</div></div><span class="HOEnZb"><font color="#888888">&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></span></blockquote></div><br>