[cmake-developers] Modifying RPATH feature to run tests uninstalled

Alexander Neundorf neundorf at kde.org
Fri Feb 17 08:48:11 EST 2012


On Friday 17 February 2012, Stephen Kelly wrote:
...
> The other issue is regarding setting RPATH for the build step and not the
> install step, and what syntax should be used for that.
> 
> The options are:
> 
> a) Change the behaviour of CMAKE_SKIP_RPATH to set the RPATH in the build
>    dir (does this need a policy)
> 
> b) Add the new variable CMAKE_SKIP_INSTALL_RPATH to skip only the
>    installation RPATH, but do use it for the build step. (Fits with
> existing CMAKE_SKIP_BUILD_RPATH)
> 
> c) Make the existing CMAKE_SKIP_BUILD_RPATH override CMAKE_SKIP_RPATH if
> set to false. (This probably would need a policy)
> 
> My choice is b), but I don't know if there are good reasons for the others.

I'm not sure this would help a lot.
Some people (distro packagers) disable RPATH by setting CMAKE_SKIP_RPATH to 
TRUE.
CMAKE_SKIP_RPATH is the big switch which overrides all others. So if this is 
used, we would still have no RPATH in the build tree.

Alex



More information about the cmake-developers mailing list