Skip to content

Conversation

scivision
Copy link
Member

It appears that fpm 0.2 supports submodule, so h5fortran should work. However I'm not sure how to link HDF5. Upon fpm build I get

Unable to find source for module dependency: "h5lt" used by ".\src\attributes.f90"

h5lt is a module within HDF5 Fortran package. So maybe my fpm.toml needs improvement

@LKedward
Copy link
Member

Hi Michael @scivision, fpm does not yet allow using system-installed modules which is why you are encountering this error. I've now submitted a PR to address this (fortran-lang/fpm#438) following other similar requests. Hopefully fpm v0.3.0 will be able to support h5fortran!

@scivision scivision marked this pull request as ready for review May 19, 2022 05:16
@scivision
Copy link
Member Author

I'm not sure what the CI failure here means. I have a CI workflow that passes with my h5fortran fpm.toml using fpm 0.5.0.

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