[CMake] cmake end user vs. developer rpath handling

Zakrzewski, Jakub Jakub.Zakrzewski at scheer-group.com
Wed Oct 9 02:09:19 EDT 2019


________________________________________
From: CMake <cmake-bounces at cmake.org> on behalf of DIXON, MARK C. <mark.c.dixon at durham.ac.uk>
Sent: 08 October 2019 17:25
To: cmake at cmake.org
Subject: [CMake] cmake end user vs. developer rpath handling

>Sometimes, this does the trick. When it does, I'm very happy:
>
>   cmake -D CMAKE_INSTALL_RPATH="/my/rpath" source_dir
>
>I'm currently looking at a package
>(https://github.com/PointCloudLibrary/pcl) where this has no bearing on
>the rpath of the installed software - I seem to get something set by the
>developer.

That "something" seems to be line 257:
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")

>Is there a way to reliably add to, or at least override, the developer's
>rpath in any cmake-built software?


Short of editing the build system scripts? I doubt...


More information about the CMake mailing list