[CMake] cmake install and rpath

a.neundorf-work at gmx.net a.neundorf-work at gmx.net
Wed Oct 17 15:28:29 EDT 2007


On Wednesday 17 October 2007 15:57, James Bigler wrote:
> I tried digging through through the mailing list and experimenting on
> my own, but I don't seem to be able to figure this out.
>
> I have a toy project that has a shared library and an executable.
> I've set it up, so that it can be installed to what ever the
> CMAKE_INTALL_PREFIX is which works fine.  The installed executable is
> relinked before installing to have the correct RPATH.
>
> I tried to use CPack with the TGZ target and it created a tar ball
> with bin and lib, but the executable still had $
> {CMAKE_INSTALL_PREFIX}/lib linked.  I would have assumed that
> something would have relinked my executable to contain a relative
> path to the library based on the CMAKE_INSTALL_PREFIX.

You mean you expected a relative path as RPATH ? I think this isn't supported 
by the linker.

Alex


More information about the CMake mailing list