[CMake] Convenience lib vs static library

Óscar Fuentes ofv at wanadoo.es
Sat Nov 22 18:30:45 EST 2008


"Sean Soria" <sean.soria at gmail.com>
writes:

> cmake claims to not support convenience libraries.  Isn't building a
> static library and then linking it into other libraries the same as a
> convenience library?

A convenience library works as an object file at link time: it is
included on the final executable as any other object file. A static
library does not have this quality: the linker picks the library's
contents only if there is something elsewhere that requires it (i.e. a
reference to a symbol defined on some object file contained on the
library).

-- 
Oscar



More information about the CMake mailing list