[CMake] target_link_libraries: prefer static to dynamic

Philip Lowman philip at yhbt.com
Sun Jan 3 14:37:09 EST 2010


On Sun, Jan 3, 2010 at 2:26 PM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> Isn't there some "binutil" which can tell what kind of library some .lib is ?
> Or maybe every dll (and that way the accompanying lib) has some functions
> which only dlls have ?
> Or maybe they references some special functions which maybe could be checked
> with something like nm ?

If I recall correctly we discussed this a long time ago and there were
some dll specific symbols present in the accompanying import library
that weren't there in the static library.

-- 
Philip Lowman


More information about the CMake mailing list