[CMake] Removing rpath paths

Alexander Neundorf neundorf at kde.org
Mon Oct 29 17:17:05 EDT 2018


On 2018 M10 28, Sun 18:46:24 CET you wrote:
> El 28/10/18 a las 18:32, Alexander Neundorf escribió:
> > well, then you do have some RPATH/RUNPATH somewhere ;-). As you say
> > probably in the libraries.
> > ld.so.conf could also contains additional search directories, but I doubt
> > that that's the case for you.
> 
> Yes, I found two libraries with rpath in them.  I used the commandline:
> 
> chrpath -d library
> 
> to remove it.  Now all is fine with the world.

Ok.
Then actually you shouldn't need any RPATH settings.
The default by cmake is that you get the full RPATH in the build tree and an 
empty RPATH in the install tree.

Alex





More information about the CMake mailing list