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

-- 
t...@klingt.org
http://tim.klingt.org

The most wonderful opportunity which life offers is to be human.
  Henry Miller


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to