How about this:
target_link_libraries(a.out /path/to/abcd.so)
If you use find_library(), then you should be getting full names already.

Clint

Kenneth Chang wrote:
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
_______________________________________________
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

_______________________________________________
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