[Cmake] install on Unix - paths

Jan Woetzel jw at mip.informatik.uni-kiel.de
Mon Jul 5 07:24:41 EDT 2004


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




More information about the Cmake mailing list