FindKDE4Internal.cmake: only conditionally set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)?

Alexander Neundorf neundorf at kde.org
Mon Jan 24 21:09:17 CET 2011


On Monday 24 January 2011, Rex Dieter wrote:
> Alexander Neundorf wrote:
> > What CMAKE_INSTALL_RPATH_USE_LINK_PATH does is that it adds the
> > directories used for linking the executable to the RPATH of the installed
> > executable. E.g. if executable foo has been linked against
> > /opt/bar/lib/libbar.so and /home/alex/lib/libblub.so then /opt/bar/lib/
> > and /home/alex/lib/ are added to the RPATH automatically.
>
> and cmake strips those if CMAKE_INSTALL_RPATH_USE_LINK_PATH is false?  Oh

It's the other way round, it only adds them if it is true.
(this feature (automatically collecting the directories) was added to cmake on 
our (my) request, before you had to know the directories manually).

Alex


More information about the Kde-buildsystem mailing list