-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[zlib] find_package(zlib) cannot locate correctly installed library files #39099
Comments
A quick update: I confirmed that the following variables are configured to empty strings (as they should be on Windows) at the time when
|
IT IS:
give a --trace-expand log if that doesn't fix it |
My bad, I typed too fast. Yes, I am aware of that. Just for context: my project does not depend on zlib directly, instead it includes another package (QuaZip) that depends on zlib. I can confirm that QuaZip uses the correct capitalization. I will provide a |
@Neumann-A Here you go: 41835.log (11 MB) |
|
Lol, you beat me to it by a second! |
It seems that simply having a dependency on the ROOT framework seems to mess up |
Since I am using a little bit outdated version of ROOT (6.26), I will confirm that this behavior is present in the latest version (6.32) as well, and file a bug report upstream if need be. I suppose that this is not a vcpkg problem after all. Thanks for a quick exchange, I am closing this as resolved. |
Feel free to use/update https://github.com/Neumann-A/my-vcpkg-ports/tree/master/root |
@Neumann-A Thanks, I will check it out! In the meantime, I have confirmed that this behavior is indeed present in ROOT 6.32. I will file a bug upstream in a moment. |
Describe the bug
When configuring a CMake project that depends on zlib, the
find_package()
call fails even if the port is installed.Environment
To Reproduce
Steps to reproduce the behavior:
find_package(zlib REQUIRED)
directive inCMakeLists.txt
Expected behavior
CMake successfully configures the project, leaving it ready to build.
Failure logs
Additional context
If I enable debug logging using
CMAKE_FIND_DEBUG_MODE=TRUE
just before my call tofind_package(zlib)
, I see the following output:Using Explorer I can confirm that the following files clearly exist on my system:
C:/vcpkg/installed/x64-windows/lib/zlib.lib
C:/vcpkg/installed/x64-windows/bin/zlib1.dll
C:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib
C:/vcpkg/installed/x64-windows/debug/bin/zlibd1.dll
This seems to me like the 'lib' prefix is incorrectly applied inside vcpkg cmake module for zlib.
The text was updated successfully, but these errors were encountered: