List Archive


Thread Index


From: Thomas Klausner <>
To: Michał Janiszewski <>
Subject: Re: vcpkg support/static builds
Date: Mon, 4 Dec 2017 22:34:30 +0100

On Sun, Nov 19, 2017 at 10:29:05AM +0100, Michał Janiszewski wrote:
> I have tried updating libzip vcpkg to 1.3.0 and took a closer look at your
> suggestions and what is going on there.
> Your suggestions to use ZIP_STATIC is perfectly fine, however there is
> still an issue with it.
> ZIP_STATIC can only be set from the build system which is not used anywhere
> in CMakeLists.txt and vcpkg seems to build multiple versions (shared,
> static), each with its own header.
> The patch in vcpkg looks to make just that – ensure each of static and
> shared version can have fully-contained headers.
> Could you change how the ZIP_STATIC is used, so that it can be configured
> (CMake's CONFIGURE_FILE) and stored in a header?

We've changed ZIP_STATIC support so that it is added to the header in
case you build a static libzip; with the cmake build only.


Hope this helps!

Made by MHonArc.