[CMake] Relinking after installing a shared library?
Albert Chin
cmake at mlists.thewrittenword.com
Thu Jun 25 19:40:11 EDT 2009
I'm using cmake-2.4.8. On HP-UX, when a binary is relinked, if a library
was also built as part of the build process, the library must be
installed relinked if needed and installed _before_ the binary is
relinked. Why? Because on HP-UX/PA, the RPATH for the library is
embedded with -L. And, if the library is not installed first, the RPATH
of the build directory is embedded.
It seems cmake does the rebuild first and then the install, making the
rebuild meaningless. How do I get cmake to install libs first,
rebuilding if necessary, before rebuilding the binaries? Also, if the
build process creates liba and libb, with libb depending on liba, liba
must be installed before libb is rebuilt/installed.
--
albert chin (china at thewrittenword.com)
More information about the CMake
mailing list