Thanks! I wouldn'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"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></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 <<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>> wrote:<br>
> I'm trying to develop some scripts that will take a portion of the<br>
> vcproj.user file, specifically the <Configuration> portion, which is located<br>
> in a separate file, and append it (N) number of times to a file, where N<br>
> equals the number of configurations we have.<br>
><br>
> Ideally I will start by using file() to read the entire contents of the<br>
> file. After that, I need to configure the string to replace this:<br>
><br>
> Name="${configuration}|Win32"<br>
><br>
> so that it looks like so (for the debug configuration):<br>
><br>
> Name="Debug|Win32"<br>
><br>
> After that, I need to append the contents of this string to another file,<br>
> which will be the final vcproj.user file.<br>
><br>
> I can't use a file to configure this because of the way I'll be appending<br>
> the contents, and I can't replace on the final file itself because there<br>
> will be multiple ${configuration} variables, but they will each need to be<br>
> assigned a different value.<br>
><br>
> The only solution I see for this is to have a configure_string() function,<br>
> which behaves exactly like configure_file() except input & output are string<br>
> variables instead of files.<br>
><br>
> Any thoughts on this? Workarounds?<br>
><br>
> ---------<br>
> Robert Dailey<br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <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>