-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[package] <zlib>/<1.2.12>: Can't link #12648
Comments
I don't have an elegant fix (except using Basically during zlib build, the output name depends on https://cmake.org/cmake/help/latest/variable/MSVC.html, and this variable is TRUE if the compiler detected by CMake is cl (ie the compiler of Visual Studio), but also any "cl like" compilers. |
I just ran in to a variation of this same issue with the latest version of zlib (1.2.13), thankfully there's an elegant fix for my issue. I'm building using a version of mingw that was compiled using clang: https://github.com/mstorsjo/llvm-mingw This line checks I've forked the repo, and contributed a first pass solution: https://github.com/calebgray/conan-center-index If/when I'm accepted as a contributor to the project, I'll create a PR for this and continue to follow the CONTRIBUTING guide. |
It would break clang-cl. There is PR already: #14644 |
Package and Environment Details
Conan profile
Steps to reproduce
Linker expects the name
libzlib.a
Actual name id directory is
libz.a
I guess that the problem here
Name in package_info and actual name of library is different, because
_is_clang_cl
methond is wrongmy conan file
conanfile.txt
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: