[CMake] creating static library with references to other .lib files

Brandon Van Every bvanevery at gmail.com
Thu Jun 7 13:26:19 EDT 2007


On 6/7/07, Jesper Eskilson <jesper at eskilson.se> wrote:
> Hi all,
>
> I would like to be able to create a static library on Windows which
> includes an import library to a DLL, so that users of the static
> library do not need to specify the import library.

By chance, is your library a C library that is commonly available to
the public, i.e. is typically present in Linux or Cygwin distributions
and whatnot?  If so, you have a problem that will likely sidestep the
issue / render it moot.  Regardless of the choice of linkage, you
could suffer a namespace collision between the version you're
maintaining in your own code, and the publically available version.
Segfaults etc.  Here's the issue in our bug tracker that we haven't
resolved yet, it gives a lot of detail as to what kinds of things can
go wrong.  http://trac.callcc.org/ticket/215


Cheers,
Brandon Van Every


More information about the CMake mailing list