How to use h5fortran as a CMake dependency? #30
-
modern-fortran/neural-fortran#79 introduces h5fortran as a dependency to neural-fortran. With fpm this is easy and works well. I gave it about an hour of honest effort trying to get it to build also with CMake. See modern-fortran/neural-fortran@69e2dbe for h5fortran-related additions to my CMakeLists.txt. The Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks, this is best shown by example: https://github.com/scivision/h5fortran-fetchcontent |
Beta Was this translation helpful? Give feedback.
-
Also example of ExternalProject: https://github.com/scivision/h5fortran-externalproject |
Beta Was this translation helpful? Give feedback.
Thanks, this is best shown by example: https://github.com/scivision/h5fortran-fetchcontent