csdms / bmi-fortran

Basic Model Interface for Fortran
https://bmi.readthedocs.io
MIT License
6 stars 10 forks source link

Install module files to include directory #33

Closed mdpiper closed 5 years ago

mdpiper commented 5 years ago

Fortran .mod files should be installed in the include directory, not the lib directory. This PR makes this change. The resulting install now looks like:

_install/
|-- bin
|   |-- run_bmiheatf
|   `-- run_heatf
|-- include
|   |-- bmif.mod
|   |-- bmiheatf.mod
|   `-- heatf.mod
`-- lib
    |-- libbmif.so
    |-- libbmiheatf.so
    `-- pkgconfig
        |-- bmif.pc
        `-- heatf.pc

Note that this may break my Fortran interoperability code in https://github.com/csdms/cookiecutter-bmi-wrap.

This fixes #32.