[CMake] Programs linked to .a or .so libraries?

Hendrik Sattler post at hendrik-sattler.de
Tue Aug 28 06:46:26 EDT 2007


Am Dienstag 28 August 2007 12:31 schrieb Convey Christian J NPRI:
> Thanks for the info.  What a strange feature for CMake to lack!  Does
> anyone know why this hasn't been implemented?

OTOH, did you ask yourself why you actually want static linking? Sure, your 
program will run that way but only with increased memory usage and load time. 
It's not a good thing to do (that's what APIs and ABIs are for).
If the linker on a system prefers dynamic linking, why do you want to override 
it?

HS


More information about the CMake mailing list