[CMake] using CMAKE_BUILD_WITH_INSTALL_RPATH

Craig Bradney cbradney at zip.com.au
Sun Jun 18 08:07:46 EDT 2006


On Tuesday 30 May 2006 17:21, Iker Arizmendi wrote:
> Explicitly setting CMAKE_SKIP_RPATH to OFF
> addressed the problem.
>
> Thanks,
> Iker
>
> Brad King wrote:
> > Iker Arizmendi wrote:
> >> What is the correct way to set the install RPATH under
> >> CMake 2.4.2? At the moment I do the following within my
> >> project's top most CMakeLists.txt file:
> >>
> >>    SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
> >>    SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
> >>
> >> And the RPATH refuses to show itself in the installed
> >> binaries for my project.
> >
> > What generator are you using and on what platform?  Do you set
> > CMAKE_SKIP_RPATH anywhere?  Is it in the cache?

Was there a bug in 2.4.2 that either CMAKE_BUILD_WITH_INSTALL_RPATH or 
CMAKE_SKIP_RPATH were ignored? I was getting CMAKE_SKIP_RPATH set to yes in 
my cache file, and after using cmake cvs it gets set to no as I have 
CMAKE_BUILD_WITH_INSTALL_RPATH set.

Craig


More information about the CMake mailing list