[CMake] Problems with implicit directories
Tyler Roscoe
tyler at cryptio.net
Fri Nov 13 12:15:39 EST 2009
On Fri, Nov 13, 2009 at 01:01:15PM +0100, Aslund wrote:
> CMake Warning at plugin/CMakeLists.txt:15 (ADD_LIBRARY):
> Cannot generate a safe linker search path for target Rob01Ex1 because
> files
> in some directories may conflict with libraries in implicit directories:
>
> link library [libyaobi.so] in /usr/lib may be hidden by files in:
> /home/aslund/Desktop/workspace/RobWork/build/../libs/Release
>
> Some of these libraries may not be found correctly.
I am currently plagued by this warning because I use specific libpng and
zlib for my project (my libraries link against my special libpng and
zlib using explicit paths to a /3rdpartylibs network share) but the
system has libpng and zlib installed in /usr/lib.
As a workaround, can you get rid of libyaobi.so from either /usr/lib or
from inside of your project?
If someone has a better solution to this problem, I'd love to hear it.
Thanks,
tyler
More information about the CMake
mailing list