-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
CMake: Finding zlib dependency broken since v1.14.5: ZLib support in HDF5 was enabled but not found #5303
Comments
why are you setting; |
Also, to use an installed zlib, hdf5 needs: ZLIB_USE_EXTERNAL:BOOL=OFF |
Thanks for the reply. After removing |
The FindZLIB.cmake module usually works best with setting the ENV(ZLIB_ROOT) to where zlib is installed. If that doesn't work and the zlib was built with CMake and provides zlib-config.cmake file, HDF5_MODULE_MODE_ZLIB:BOOL=OFF might help. |
I don't get hdf5 configured with zlib dependency as expected. This is just to much trial and error. Do you have a working proposal based on the example CMake code? Thanks again for your support! |
Unfortunately, I had to resort to this CMake option: |
Given my knowledge and the high number of option combinations I have to admit that I do not have the endurance to run the tests repeatedly via CI. Obviously it is not trivial at all to update a working build script (yes, probably based on workarounds or shortcuts) from 1.14.4 to 1.14.5 or 1.14.6. If you are curious, the whole workflow is taken from https://github.com/tbeu/ModelicaTableAdditions/blob/main/ModelicaTableAdditions/Resources/BuildProjects/CMake/test.cmake |
Describe the bug
The following CMake file snippet works with v1.14.4.3, but fails with v1.14.5 and 1.14.6 where the configuration warning: "ZLib support in HDF5 was enabled but not found" is stated which later on results in run-time exceptions.
Expected behavior
A minor release must not break the build scripts of downstream users.
Platform (please complete the following information)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: