Open MarDiehl opened 4 months ago
With CMake, there is a folder mod in /usr that contains Fortran module files. Having module files in this folder is uncommon.
CMake provides more options for customizing then the Autotools builds.
The fortran mod files are binary objects. However the CMake build gives the option to rename the folder with HDF5_INSTALL_MODULE_DIR or copy either the shared or static mods to the include folder with HDF5_INSTALL_MOD_FORTRAN.
CMake default for HDF5_BUILD_EXAMPLES corresponds to default CMake convention.
CMake default for HDF5_BUILD_EXAMPLES corresponds to default CMake convention.
Where can I find the examples? autotools installs them to /usr/share/doc/hdf5/examples/
but I can't find them there when using CMake.
The fortran mod files are binary objects. However the CMake build gives the option to rename the folder with HDF5_INSTALL_MODULE_DIR or copy either the shared or static mods to the include folder with HDF5_INSTALL_MOD_FORTRAN.
But what is the rational to have some in /usr/mod/shared
(where I, as a Fortran developer, would never search for them) and others into the more common location /usr/include
?
Because with some compilers shared and static mod files are different, we allow you to choose.
Describe the bug There are differences in the file layout between the CMake build and the autotools build The results obtained from autotools make more sense.
Expected behavior The file layout resulting from both build tools should be the same
Platform (please complete the following information)
Additional context Build instructions are:
With CMake, there is a folder
mod
in/usr
that contains Fortran module files. Having module files in this folder is uncommon. Also, the example files in/usr/share/doc/hdf5
are missing when using CMake even thoughHDF5_BUILD_EXAMPLES
is set to ON by default.