[CMake] Simple (?) lib linking question

Jorge Rodriguez jrodriguez at xvt.com
Thu Aug 3 17:54:51 EDT 2006


Anders Sundman wrote:
> Thank you for your comment. I should have chosen better names in my
> example to avoid confusion, but this is not the problem. At least I don't
> think so.
>
> ADD_LIBRARY(liba SHARED liba.cpp) creates the library libliba.dylib (the
> other lib is named liblibb.dylib, so TARGET_LINK_LIBRARIES(liba libb)
> should be right.
>   

Good point. It should find the library anyways, because it's looking for 
liblibb.dylib.

Maybe you need a .a instead of a .dylib?

-- 
Jorge Rodriguez
XVT Software Development
Email: jrodriguez at xvt.com
Phone: (919) 854-1800 x222




More information about the CMake mailing list