[Cmake] install on Unix - paths

William A. Hoffman billlist at nycap.rr.com
Tue Jul 6 11:54:52 EDT 2004


The only thing you can do is set CMAKE_SKIP_RPATH in the cache.
I don't think that autotools patches the libraries, it just does
not set the rpath.  I do not think it is possible to patch the libraries
after they are created.  The idea is, if you are building for an install,
the libraries will be installed into a path that is in LD_LIBRARY_PATH or
some other system area that is known by the ld.so program and rpaths will
not be needed.

-Bill





At 07:24 AM 7/5/2004, Jan Woetzel wrote:

>Hi,
>I want to install a "stable" version of my libraries to the system be used by students.
>
>It seems, that install just copies the libraries and headers from PROJECT_BINARY_DIR to CMAKE_INSTALL_PREFIX but doesn't patch the path the paths within the libraries, e.g. dependencies (and rpath) which canbe displayed with "ldd libname".
>
>My problem is, that during the library compilation the dependant paths point to the build tree, which is correct.
>They come from TARGET_LINK_LIBARIES and LINK_DIRECTORIES.
>
>But after install these should point to CMAKE_INSTALL_PREFIX instead of PROJECT_BINARYBUIL_DIR
>which is a problem because the installed libraries should not have any dependencies to my (private) source or build directory.
>
>(1) How can we assure that a user project which links against a toplevel library from CMAKE_INSTALL_PREFIX
>does NOT get any lib from PROJECT_BINARY_DIR after install ?
>
>I think autotools patch the libraries to solve this problem.
>
>Any idea?
>Jan.
>
>-- 
>
> Dipl.-Ing. Jan Woetzel
>--------------------------------------------------
> University of Kiel
> Institute of Computer Science and Applied Mathematics
> Hermann-Rodewald-Str. 3 [room 401]
> 24098 Kiel/Germany
>--------------------------------------------------
> Phone +49-431-880-1418
> Fax   +49-431-880-4054
> Mob.  +49-179-2937346
>--------------------------------------------------
> Url   www.mip.informatik.uni-kiel.de/~jw
> Email jw at mip.informatik.uni-kiel.de
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the Cmake mailing list