On Wed, Sep 30, 2009 at 8:32 AM,  <span dir="ltr">&lt;<a href="mailto:fred.antares@free.fr">fred.antares@free.fr</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I&#39;ve seen a previous discussion on this subject, but unfortunately, none of the<br>
given solutions (as described on<br>
<a href="http://www.cmake.org/Wiki/CMake:VariablesListsStrings" target="_blank">http://www.cmake.org/Wiki/CMake:VariablesListsStrings</a>) seem to work in my case.<br>
<br>
I&#39;m using CMake to generate an XML config file, and one of the tags must have an<br>
argument as follows: args=&quot;${serverConfigChanged}&quot;. The XML is used by<br>
CruiseControl, and unfortunately, it uses the same variable syntax as CMake. I<br>
tried almost every combination of escaping, double dollars, but couldn&#39;t get the<br>
correct output.<br>
<br>
Is there some way to achieve that directly from the CMakeList.txt, or should I<br>
do that in the generator code ?<br></blockquote><div><br>Are you using configure_file? Because then you could use the @ONLY option to ensure only variables of the form @VARNAME@ are replaced.<br><br>See <a href="http://cmake.org/cmake/help/cmake2.6docs.html#command:configure_file">http://cmake.org/cmake/help/cmake2.6docs.html#command:configure_file</a><br>
<br>Greetz,<br>JeDi<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks<br>
<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 <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: <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>
</blockquote></div><br>