<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"><<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>></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>
> Hi,<br>
> I've been following the guide<br>
</div>> <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">> with my executable on Unix, but even with any<br>
> combination of them doesn't change the final result:<br>
><br>
> anexe: error while loading shared libraries: libaname.so.1: cannot open<br>
> shared object file: No such file or directory<br>
><br>
> This is running it both installed and in the build tree, even objdump -x<br>
> anexe|grep RPATH doesn't report anything. The only way I found to make this<br>
> work is to manually set LINK_FLAGS for each target and set -Wl,-rpath,...<br>
><br>
> What is going on? Why do all variables seem to be ignored?<br>
> I'm using cmake 2.8.10 on ubuntu 12.04 32 bit.<br>
> 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>