Skip to content

Add cmake workaround for hdf5 version detection when using hdf5 with subversion #26

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

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

Wentzell
Copy link
Member

No description provided.

@Wentzell Wentzell requested a review from hmenke July 22, 2024 22:30
@Wentzell
Copy link
Member Author

Thank you @hmenke for the suggestions, I have updated the PR accordingly.

@Wentzell
Copy link
Member Author

Wentzell commented Jul 23, 2024

Note that the 1.13 version check is necessary and can't be dropped

endif()
if(HDF5_VERSION VERSION_GREATER_EQUAL 1.13)
target_compile_definitions(h5_c PRIVATE H5_USE_110_API)
if(NOT HDF5_VERSION VERSION_LESS 1.13)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was too optimistic. This doesn't work when HDF5_VERSION is missing altogether.

@Wentzell
Copy link
Member Author

Ok. Can I ask which hdf5 versions are affected by this issue?

@hmenke
Copy link
Member

hmenke commented Jul 29, 2024

This started with 1.14.1. Before that the H5_VERS_SUBRELEASE suffix was only for release candidates, but with version 1.14.1-2 they started tagging full releases with it. https://github.com/HDFGroup/hdf5/tags

@Wentzell Wentzell requested a review from hmenke July 29, 2024 14:44
Copy link
Member

@hmenke hmenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart move ;)

@Wentzell Wentzell merged commit 2d13f5b into unstable Jul 29, 2024
4 checks passed
@Wentzell Wentzell deleted the DEV_H5SUBV_ISSUE branch July 31, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants