We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the Bug Find libzip find_package(libzip REQUIRED)
find_package(libzip REQUIRED)
Then I can see libzip is included and found by print them with-D CMAKE_FIND_DEBUG_MODE=ON
-D CMAKE_FIND_DEBUG_MODE=ON
But I can't link it with: target_link_libraries(myApp zip)
target_link_libraries(myApp zip)
And error comes with: ld: library 'zip' not found
ld: library 'zip' not found
But your example writes target_link_libraries(${PROGRAM} zip) in your https://github.com/nih-at/libzip/blob/main/examples/CMakeLists.txt
target_link_libraries(${PROGRAM} zip)
So the official example was a scam?
Expected Behavior target_link_libraries(myApp zip) Should worked and links good.
Observed Behavior target_link_libraries(myApp zip) Doesn't link the library and prints ld: library 'zip' not found ERROR
To Reproduce You can try your self.
libzip Version 1.10.1
Operating System macOS Sonoma
Test Files N/A
Additional context N/A
The text was updated successfully, but these errors were encountered:
The package I built is here.
libzip.zip
Sorry, something went wrong.
You're not using it correctly, use
target_link_libraries(${PROGRAM} libzip::zip)
No branches or pull requests
Describe the Bug
Find libzip
find_package(libzip REQUIRED)
Then I can see libzip is included and found by print them with
-D CMAKE_FIND_DEBUG_MODE=ON
But I can't link it with:
target_link_libraries(myApp zip)
And error comes with:
ld: library 'zip' not found
But your example writes
target_link_libraries(${PROGRAM} zip)
in your https://github.com/nih-at/libzip/blob/main/examples/CMakeLists.txtSo the official example was a scam?
Expected Behavior
target_link_libraries(myApp zip)
Should worked and links good.Observed Behavior
target_link_libraries(myApp zip)
Doesn't link the library and printsld: library 'zip' not found
ERRORTo Reproduce
You can try your self.
libzip Version
1.10.1
Operating System
macOS Sonoma
Test Files
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: