[CMake] linker doesnt find shared library

Thorsten Wagner wagner.thorsten at gmx.de
Thu Jan 12 13:25:14 EST 2012


Hello,

i have a library "libpnt.so" under /usr/local/lib/pnt.
I've added a pnt.conf with this path  under /etc/ld.so.conf.d/ and 
execute ldconfig

ldconfig -v | grep libpnt.so finds the library:

"libpnt.so.0 -> libpnt.so.0.8.1"

In the CMakeList.txt i try to link against the target:
"TARGET_LINK_LIBRARIES(profil pnt ...)"

But the linker returns: "cannot find -lpnt".

When the library is saved under /usr/local/lib, everything works fine...

Any suggestions?

Kind Regards
Thorsten Wagner



More information about the CMake mailing list