Did you try &quot;\\\$&quot;?<br><br>Both $ and \ need escaping inside the CMake set statement so that you end up with &quot;\$&quot; in the variable&#39;s value...<br><br>And if it goes through another round of CMake substitution, you may even need something crazy like:
<br>&quot;\\\\\\\$&quot;<br><br><br>HTH,<br>David<br><br><br><div><span class="gmail_quote">On 1/17/08, <b class="gmail_sendername">Iker Arizmendi</b> &lt;<a href="mailto:iker@research.att.com">iker@research.att.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sorry, I should have been clearer in my last post. I also<br>tried escaping the value I put into CMAKE_INSTALL_RPATH but
<br>CMake successfully fought me off. Below are some of the<br>results for an installed executable. Each &quot;SET&quot; is followed<br>by the rpath that actually made it to the executable:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;SET(CMAKE_INSTALL_RPATH &quot;${CMAKE_INSTALL_RPATH}:\$ORIGIN/xxx&quot;)
<br>&nbsp;&nbsp;&nbsp;&nbsp;Library rpath: [/home/iker/tmp/rpath_test/:RIGIN/xxx]<br><br>&nbsp;&nbsp;&nbsp;&nbsp;SET(CMAKE_INSTALL_RPATH &quot;${CMAKE_INSTALL_RPATH}:$$ORIGIN/xxx&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;Library rpath: [/home/iker/tmp/rpath_test/:/xxx]<br><br>&nbsp;&nbsp;&nbsp;&nbsp;SET(CMAKE_INSTALL_RPATH &quot;${CMAKE_INSTALL_RPATH}:\\$ORIGIN/xxx&quot;)
<br>&nbsp;&nbsp;&nbsp;&nbsp;Library rpath: [/home/iker/tmp/rpath_test/:/RIGIN/xxx]<br><br>&nbsp;&nbsp;&nbsp;&nbsp;SET(CMAKE_INSTALL_RPATH &quot;${CMAKE_INSTALL_RPATH}:\\$$ORIGIN/xxx&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;Library rpath: [/home/iker/tmp/rpath_test/://xxx]<br><br>Iker<br>
<br>James Bigler wrote:<br>&gt; I asked if you had tried various permutations of escapes with the<br>&gt; original command [SET(CMAKE_INSTALL_RPATH<br>&gt; &quot;${CMAKE_INSTALL_RPATH}:$ORIGIN/../xxx&quot;)] not the ones with the hard
<br>&gt; coded -Wl,-rpath.&nbsp;&nbsp;From your original email it appears you only tried<br>&gt; various permutations with the setting the linker path directly:<br><br><br>--<br>Iker Arizmendi<br>AT&amp;T Labs - Research<br>Speech and Image Processing Lab
<br>e: <a href="mailto:iker@research.att.com">iker@research.att.com</a><br>w: <a href="http://research.att.com">http://research.att.com</a><br>p: 973-360-8516<br><br>_______________________________________________<br>CMake mailing list
<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>