-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[hdf5] Link zlib using the ZLIB::ZLIB target #18905
Conversation
Has nothing to to with hdf5. But has everything to do with I am also pretty sure that the ZLIB target ist not correctly setup on linux (e.g. no _DEBUG and _RELEASE IMPORTED_LOCATION) |
Well, it seems to be okay since cmake 3.4: I'm testing on Ubuntu 18.04 (CMake 3.10). |
@dg0yt You don't need to test it. Just look at the module: It will have only |
If nobody tests, I don't need to wonder why so many stuff is broken. vcpkg CI just scratches the surface. |
This PR should become obsolete with #18914. |
@dg0yt, thanks for your contribution! ping me if this PR ready for review. |
With #18914 merged, this PR is obsolete now.
|
What does your PR fix?
This PR fixes linking of the debug version of hdf5. Before the changes, it was linking to the release version of libz, and this was passed on via the exported cmake config files. This PR resolves the issue by always using the imported target
ZLIB::ZLIB
so that config resolution can happen as needed.This was found when validating the extended gdal cmake wrapper/the linker flags used for a consuming executable. Before the change, it contained both debug and release version of libz:
Which triplets are supported/not supported? Have you updated the CI baseline?
all, no.
Does your PR follow the maintainer guide?
yes.
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?yes.