[CMake] Something amiss from RPATH

Vittorio Giovara vittorio.giovara at gmail.com
Mon Jun 24 10:21:28 EDT 2013


On Mon, Jun 17, 2013 at 8:59 PM, Alexander Neundorf <a.neundorf-work at gmx.net
> wrote:

> On Tuesday 11 June 2013, Vittorio Giovara wrote:
> > Hi,
> > I've been following the guide
> > http://www.cmake.org/Wiki/CMake_RPATH_handlingfor using my libraries
> > with my executable on Unix, but even with any
> > combination of them doesn't change the final result:
> >
> > anexe: error while loading shared libraries: libaname.so.1: cannot open
> > shared object file: No such file or directory
> >
> > This is running it both installed and in the build tree, even objdump -x
> > anexe|grep RPATH doesn't report anything. The only way I found to make
> this
> > work is to manually set LINK_FLAGS for each target and set -Wl,-rpath,...
> >
> > What is going on? Why do all variables seem to be ignored?
> > I'm using cmake 2.8.10 on ubuntu 12.04 32 bit.
> > Vittorio
>
> can you post a minimal example project which shows the problem ?
>
> Thanks
> Alex
>
> 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.

Best,
Vittorio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130624/46dff5f8/attachment.htm>


More information about the CMake mailing list