[CMake] Can I make both(STATIC & SHARED) type libraries?
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Mar 2 05:15:07 EST 2007
-------- Original-Nachricht --------
Datum: Fri, 2 Mar 2007 17:55:26 +0900
Von: "Jong-young Park" <eminency at gmail.com>
An: cmake <cmake at cmake.org>
CC:
Betreff: Re: [CMake] Can I make both(STATIC & SHARED) type libraries?
> I tested it.
> However, compiling was made twice(for example, 'gcc -c a.c' is performed
> twice for shared and static).
Yes, that's a feature.
You have two targets, and both targets might need different compiler switches, definitions for headers (e.g. export stuff) etc. That's why the sources are compiled separately for every target.
Bye
Alex
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the CMake
mailing list