[CMake] target_link_libraries doubt

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jun 14 14:40:04 EDT 2006


Von: Vikas Kumar <vikasnkumar at users.sourceforge.net>

> Hi
> I have a library that links to other shared libraries. For example I
> am trying to build libFoo.so , which links to a shared library
> libBar.so.
> How do i link in libBar.so statically instead ?
> is there a way to do that like by saying "-static "  just before
> libBar.so
> This way I will have to worry about distributing one library instead of
> two.

I think this is not possible.
You either have to build and distribute two libraries, or simply put everything in one library. Having the source files in different directories is no problem.

Bye
Alex

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


More information about the CMake mailing list