[CMake] Multiple executables sharing object files

Alexander Neundorf a.neundorf-work at gmx.net
Wed Dec 19 13:13:14 EST 2007


On Wednesday 19 December 2007, Joel Schaerer wrote:
> > Maybe I am missing something, but why not create a static library and
> > share it with the executables?  Why try to reuse object files?  CMake
> > makes it very easy to create static libraries and link them to
> > executables.
> >
> > -Bill
>
> Because then you have to relink all executables each time you change one of
> the library files, even the ones that don't rely on that file. Which isn't

You could organize your static libs so that the executables only link to what 
they need.

Alex


More information about the CMake mailing list