Skip to content
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

Update hdf5.cmake to enable h5diff #134

Closed
wants to merge 4 commits into from
Closed

Conversation

timosachsenberg
Copy link
Contributor

needed if we want to use the hdf5-config.cmake files.
See discussion at OpenMS/OpenMS#6713

@jpfeuffer
Copy link
Contributor

TBH, the first thing I would have done is probably just updating the version.
I can see someone actually uploaded the sources of the new version already.
https://abibuilder.cs.uni-tuebingen.de/archive/openms/contrib/source_packages/

@timosachsenberg
Copy link
Contributor Author

already use it in my local branch. just pushed the changes here as well

@jpfeuffer
Copy link
Contributor

Ah wow, so even the newest version has this potential bug?

@timosachsenberg
Copy link
Contributor Author

I did a force rebuild so I guess yes.
I can try again with everything freshly downloaded just to make sure...

@timosachsenberg
Copy link
Contributor Author

Just confirmed... we only build release in contrib but the hdf5-config.cmake seems to look for debug libraries

@jpfeuffer
Copy link
Contributor

https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_PACKAGE_PREFER_CONFIG.html

Apparently module mode is the default. We should prefer Config whenever available. I think in the case of HDF5 it should be available on all channels (conda, apt, contrib) therefore you could force it with the full signature of find_package:
https://cmake.org/cmake/help/latest/command/find_package.html#full-signature

Try this first before building the tools unnecessarily. The config file actually looks ok.

@jpfeuffer jpfeuffer mentioned this pull request Dec 12, 2023
5 tasks
@timosachsenberg
Copy link
Contributor Author

ah thanks! we even had explicitly find_package(HDF5 MODULE ... )
now it seems to configure...

@timosachsenberg
Copy link
Contributor Author

not needed anymore

@timosachsenberg timosachsenberg deleted the enable_h5diff branch December 12, 2023 15:16
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