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

Attachment: pgppd3NlPA3IA.pgp
Description: PGP signature

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to