Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libzip::zip doesn't exist #420

Closed
jakitliang opened this issue Jan 12, 2024 · 2 comments
Closed

libzip::zip doesn't exist #420

jakitliang opened this issue Jan 12, 2024 · 2 comments

Comments

@jakitliang
Copy link

jakitliang commented Jan 12, 2024

CMake Error at src/App/CMakeLists.txt:6 (target_link_libraries):
  Target "myApp" links to:

    libzip::zip

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

While you try
target_link_libraries(myApp libzip::zip)

@jakitliang jakitliang changed the title You're not using it correctly, use libzip::zip doesn't exist Jan 12, 2024
@0-wiz-0
Copy link
Member

0-wiz-0 commented Jan 12, 2024

Here's one project that uses libzip, perhaps you can get some inspiration from there:
https://github.com/nih-at/ckmame/blob/main/CMakeLists.txt

@jakitliang
Copy link
Author

It can works when including the whole libzip project into the project.
But can't do find_package with a prebuilt binary prefix.

Maybe there is something missing with libzip-config.cmake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants