[CMake] lib dependencies
Thomas Christian Chust
chust at web.de
Fri Apr 27 04:32:54 EDT 2007
Hendrik Sattler wrote:
> [...]
> Windows needs the indirect dependencies, same as MacOS X, AFAIK.
> [...]
Hello,
I'm not so sure about the precise architecture on Windows and Linux, but
the MacOS X linker *does not* require indirect dependencies to be
mentioned explicitly when creating an executable.
It is important to mention, though, that MacOS X also uses a multi-level
namespace. So if Application A links to library B, which is linked to
library C, A can access the symbols from B, but *not those from C*,
while B can, even if you didn't link A to C explicitly.
Hence, if your application also accesses functions from auxiliary
libraries used by your primary library dependencies, you *do* have to
link explicitly to the auxiliary dependencies on MacOS X.
cu,
Thomas
More information about the CMake
mailing list