[CMake] Creating a static lib from other static libs, HOW?

Brandon Van Every bvanevery at gmail.com
Sun Sep 16 17:57:53 EDT 2007


On 9/16/07, Goswin von Brederlow <brederlo at informatik.uni-tuebingen.de> wrote:
> "Brandon Van Every" <bvanevery at gmail.com> writes:
>
> > On 9/15/07, Goswin von Brederlow <brederlo at informatik.uni-tuebingen.de> wrote:
> >>
> >> But how do I link libutil.a and libconsole.a into a combined
> >> libcore.a? I tried setting
> >
> > FAQ.  (I'm tired.)
> >
> > Cheers,
> > Brandon Van Every
>
> There are 2 things in the FAQ that could be relevant:
>
> 'Does CMake support "convenience" libraries?' would indicate that I
> can't combine library objects into a single library. It doesn't say if
> it means static or dynamic libraries though. Does it mean both?

You're right that the FAQ is unclear about static vs. dynamic.
Static, you're definitely hosed, no convenience libraries.  Dynamic,
not sure.  You can certainly include static libraries into dynamic
libraries on Windows.  Not sure you can include dynamic libraries into
dynamic libraries.  The issue really hasn't come up for me, and I'm
still tired.  :-)  I'm going to let others field this one, or you
could search the mailing list archives.


Cheers,
Brandon Van Every


More information about the CMake mailing list