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

Brandon Van Every bvanevery at gmail.com
Wed Sep 19 12:45:03 EDT 2007


On 9/18/07, Goswin von Brederlow <brederlo at informatik.uni-tuebingen.de> wrote:
> "Brandon Van Every" <bvanevery at gmail.com> writes:
> >
> > I just got done telling all you guys how to reuse objects in a
> > platform independent manner.  And it's in the FAQ now for handy
> > reference.
>
> Problems arise when you have too many objects for the command line.
> You need succesive links steps then. Did you consider that?

If CMake considered it.  All I do is find the objects that CMake
already generated, then dump them directly into a library target.
CMake can swallow all kinds of stuff, *.c files, *.h files, *.o files,
whatever.

This is part of why I think you guys should stop messing around with
non-CMake ways of doing things.  It either works and hey presto!
you've got wonderful automagical cross-platform build stuff for no
work... or it doesn't work, and you're helping CMake improve by
submitting bug reports or feature requests.  But messing around with
AR yourself is missing the point of what a cross-platform build system
is supposed to be doing for you.  I can see it for legacy porting
issues or tweaky corner cases, but otherwise, it's the wrong
development strategy.


Cheers,
Brandon Van Every


More information about the CMake mailing list