[CMake] Simple (?) lib linking question
Brandon J. Van Every
bvanevery at gmail.com
Thu Aug 3 18:09:09 EDT 2006
Jorge Rodriguez wrote:
> 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?
>
Well if you really did all this "liblib" stuff to generate your example,
I'd suggest you not tempt fate and do it correctly. Who knows what kind
of interactions and collisions you'll get. Good debugging means working
on one thing at a time.
Cheers,
Brandon Van Every
More information about the CMake
mailing list