[CMake] linking with .so w/ non-standard names

Kenneth Chang kchang at athenacr.com
Thu Aug 13 17:43:08 EDT 2009


Hi,

I have this third party library that has a .so named like abcd.so 
instead of libabcd.so.  Putting the name in

target_link_libraries( a.out abcd.so )

doesn't work because this generates -labcd on the link line and then ld 
can't find it.  What do I need to do to get this to link?

Thanks!
Kenny


More information about the CMake mailing list