nih-at/libzip

Error when use with CPM (cmake package manager)

paulocoutinhox opened this issue · 1 comments

Describe the Bug

make[2]: *** No rule to make target `zlib', needed by `bin/demo'.  Stop.
make[1]: *** [CMakeFiles/demo.dir/all] Error 2

Expected Behavior

Build :)

Observed Behavior

Error :(

To Reproduce

CPMAddPackage(
  NAME libzip
  GIT_REPOSITORY https://github.com/nih-at/libzip.git
  GIT_TAG "v1.10.1"
  OPTIONS
    "ENABLE_COMMONCRYPTO OFF"
    "ENABLE_GNUTLS OFF"
    "ENABLE_MBEDTLS ON"
    "ENABLE_OPENSSL OFF"
    "ENABLE_WINDOWS_CRYPTO OFF"
    "BUILD_TOOLS OFF"
    "BUILD_REGRESS OFF"
    "BUILD_OSSFUZZ OFF"
    "BUILD_EXAMPLES OFF"
    "BUILD_DOC OFF"
    "BUILD_SHARED_LIBS OFF"
    "LIBZIP_DO_INSTALL OFF"
)

libzip Version
1.10.1

Operating System
macOS

It looks like you have a problem with CPM, so please report it there.
zlib is an external dependency of libzip that needs to be installed first.

Additionally, bin/demo is not part of libzip, so you seem to be building something else.