[CMake] automatic library dependencies causing problems
Clinton Stimpson
clinton at elemtech.com
Thu Feb 3 11:57:09 EST 2005
Hi,
I've got a project that is supposed to be like this
A
/ \
D B
\
D
/ / \ \
E F G H
And lets say that libraries E, F, and G are static libraries and all the
others are shared.
And let's say that E and F are built by CMake in the same project and G
is an external one.
The static ones should only be linked into D and not into A and B.
CMake does link them in and A and B end up being much larger than they
need to be because they have their own copies of E, F, and G.
How do I turn off the automatic library dependencies so that they don't
get linked into A and B?
The code is functional on several platfoms except IRIX.
On IRIX, this is causing the code to be non functional because it uses
the wrong copies of static variables in libraries E and F.
Thanks,
Clint
More information about the CMake
mailing list