<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 8:59 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tuesday 11 June 2013, Vittorio Giovara wrote:<br>
&gt; Hi,<br>
&gt; I&#39;ve been following the guide<br>
</div>&gt; <a href="http://www.cmake.org/Wiki/CMake_RPATH_handlingfor" target="_blank">http://www.cmake.org/Wiki/CMake_RPATH_handlingfor</a> using my libraries<br>
<div class="im">&gt; with my executable on Unix, but even with any<br>
&gt; combination of them doesn&#39;t change the final result:<br>
&gt;<br>
&gt; anexe: error while loading shared libraries: libaname.so.1: cannot open<br>
&gt; shared object file: No such file or directory<br>
&gt;<br>
&gt; This is running it both installed and in the build tree, even objdump -x<br>
&gt; anexe|grep RPATH doesn&#39;t report anything. The only way I found to make this<br>
&gt; work is to manually set LINK_FLAGS for each target and set -Wl,-rpath,...<br>
&gt;<br>
&gt; What is going on? Why do all variables seem to be ignored?<br>
&gt; I&#39;m using cmake 2.8.10 on ubuntu 12.04 32 bit.<br>
&gt; Vittorio<br>
<br>
</div>can you post a minimal example project which shows the problem ?<br>
<br>
Thanks<br>
Alex<br>
<br>
</blockquote></div>As I mentioned in a previous post, I found out that there was a set(CMAKE_SKIP_BUILD_RPATH true) set in another CMakeLists from a project I embedded in mine. Apparently cache got confused and/or that second set took precedence and disabled my rpath settings.<br>
<br></div><div class="gmail_extra">Best,<br>Vittorio<br></div></div>