[CMake] shared library linking question
Tim Blechmann
tim at klingt.org
Fri Feb 12 18:35:17 EST 2010
hi all,
i am trying to write a cmake build system for an existing project and have
some troubles with linking of shared libraries.
basically, my directory layout of the targets is the following:
common/libcommon.so
target1/target1
target2/target2
both target1 and target2 are linked with libcommon, both work fine in the
build directory, the libraries are resolved correctly.
after installing them, they are formatted like:
$PREFIX/lib/libcommon.so
$PREFIX/bin/target1
$PREFIX/bin/target2
now libcommon.so cannot be resolved, probably because the targets are linked
with ../common/libcommon.so, so the loader cannot find the shared library.
what is the best way to resolve this issue?
thanks in advance, tim
--
tim at klingt.org
http://tim.klingt.org
The most wonderful opportunity which life offers is to be human.
Henry Miller
More information about the CMake
mailing list