[CMake] Adding -fPIC to static libraries
Prakash Punnoor
prakash at punnoor.de
Fri Mar 3 05:49:20 EST 2006
Am Donnerstag März 2 2006 09:09 schrieb Alexander Neundorf:
> There is already a bug report about this.
>
> But I did it now this way, that I just created variables which list all
> the source files which once were conv. libs and include this variable in
> all targets which linked to these conv. libs.
It might work, but not very efficiently:
PROJECT(test C)
SET(SRCS a.c b.c)
ADD_LIBRARY(as STATIC ${SRCS})
ADD_LIBRARY(ash SHARED ${SRCS})
ADD_LIBRARY(bs STATIC ${SRCS})
compiles the sources three times, not only twice.
--
(°= =°)
//\ Prakash Punnoor /\\
V_/ \_V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060303/64628f31/attachment.pgp
More information about the CMake
mailing list