[CMake] Static Modules

Alexander Neundorf a.neundorf-work at gmx.net
Wed Mar 10 14:47:02 EST 2010


On Tuesday 09 March 2010, Markus Raab wrote:
> Hi list!
>
> I am currently trying to migrate a autotools project to cmake.
>
> The project used modules intensively. It was possible to compile all these
> modules also statically and link them together to a single static library.
> Is this supported out of the box by cmake? How?

AFAIK no.
In KDE we also had these libtool convenience libraries. 
We don't have that anymore, we just compile all the files directly into one 
library.
We didn't have any issues with this since then.

(it may be possible to hack something together with custom commands to extract 
the object files from the ar archives and put them together into a resulting 
ar file but I wouldn't recommend this)

Alex


More information about the CMake mailing list