<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 9, 2018 at 1:29 AM, J Decker <span dir="ltr"><<a href="mailto:d3ck0r@gmail.com" target="_blank">d3ck0r@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Jan 9, 2018 at 1:24 AM, Franck Houssen <span dir="ltr"><<a href="mailto:franck.houssen@inria.fr" target="_blank">franck.houssen@inria.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"times new roman","new york",times,serif;font-size:12pt;color:rgb(0,0,0)"><div>Hello,<br></div><div><br></div><div>I need configure_file to produce a bash file containing this line:<br></div><div>VAR="${VAR//<strong><span style="color:rgb(255,0,0)">'</span></strong>#<strong><span style="color:rgb(255,0,0)">'</span></strong>/}"</div><div><br></div></div></div></blockquote><div><br></div></span><div>maybe </div><span class=""><div><br></div><div><span style="color:rgb(0,0,0);font-family:"times new roman","new york",times,serif;font-size:16px">VAR="$" "{VAR//</span><span style="font-family:"times new roman","new york",times,serif;font-size:16px;color:rgb(255,0,0)"><strong>'</strong></span><span style="color:rgb(0,0,0);font-family:"times new roman","new york",times,serif;font-size:16px">#</span><span style="font-family:"times new roman","new york",times,serif;font-size:16px;color:rgb(255,0,0)"><strong>'</strong></span><span style="color:rgb(0,0,0);font-family:"times new roman","new york",times,serif;font-size:16px">/}"</span></div></span></div></div></div></blockquote><div>Oh nevermind I was doing that sort of thing using FILE( APPEND ... )</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><br></div><div> </div></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><div><div style="font-family:"times new roman","new york",times,serif;font-size:12pt;color:rgb(0,0,0)"><div></div><div>I tried without success VAR="${VAR//<span style="color:rgb(255,0,0)"><strong>'</strong></span>#<span style="color:rgb(255,0,0)"><strong>'</strong></span>/}" and VAR="${VAR//<span style="background-color:transparent;color:rgb(255,0,0)"><strong>\'</strong></span>#<span style="color:rgb(255,0,0)"><strong>\'</strong></span>/}" with and without <code class="m_-1422613532158851012gmail-m_-2997438483405220359docutils m_-1422613532158851012gmail-m_-2997438483405220359literal"><span class="m_-1422613532158851012gmail-m_-2997438483405220359pre">ESCAPE_QUOTES</span></code> in configure_file : always get an error like "Syntax error in cmake code when parsing string".<br></div><div>Not a bash guru, and, can't get if the problem comes from bash or cmake... Can somebody help on this ?<span class="m_-1422613532158851012gmail-HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-1422613532158851012gmail-HOEnZb"><font color="#888888"><div><br></div><div>Franck<br></div></font></span></div></div><br></span>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/list<wbr>info/cmake</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div></div>