[CMake] Compiling without linking

Torsten Martinsen tma at gatehouse.dk
Thu Oct 4 06:19:58 EDT 2007


Baptiste Derongs <> wrote:

> Actually I have a file that contains a lot of functions, call this
> file global.c.
> Next I have multiple files, call them f1.c, f2.c, ...
>
> And each f*.c has to be compiled with global.c.

Make a static library containing global.c, then link each application to
it.

-Torsten

This e-mail and any files sent with it contain information that may be privileged or confidential and is the property of the GateHouse Group. This information is intended solely for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use the message or any part thereof. If you have received this e-mail in error, please notify the sender immediately, and delete all copies of this message. In accordance with GateHouse Security Policy, e-mails sent or received may be monitored.


More information about the CMake mailing list