summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-07-09 18:03:58 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-07-09 18:03:58 (GMT)
commit07a52ecb2ffa1d8d32f06db23470833899db3deb (patch)
tree9907361e0bcf965328735951ebb622399c6fb107 /fortran/src
parent4b122440910911a51e8440d37db27960476d4d11 (diff)
downloadhdf5-07a52ecb2ffa1d8d32f06db23470833899db3deb.zip
hdf5-07a52ecb2ffa1d8d32f06db23470833899db3deb.tar.gz
hdf5-07a52ecb2ffa1d8d32f06db23470833899db3deb.tar.bz2
HDFFV-11116 Add option for install location of Fortran MOD files
Diffstat (limited to 'fortran/src')
-rw-r--r--fortran/src/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt
index bf2fd84..b1add54 100644
--- a/fortran/src/CMakeLists.txt
+++ b/fortran/src/CMakeLists.txt
@@ -412,6 +412,16 @@ if (NOT ONLY_SHARED_LIBS)
COMPONENT
fortheaders
)
+ if (HDF5_INSTALL_MOD_FORTRAN MATCHES "STATIC")
+ install (
+ FILES
+ ${mod_files}
+ DESTINATION
+ ${HDF5_INSTALL_INCLUDE_DIR}
+ COMPONENT
+ fortheaders
+ )
+ endif ()
endif ()
if (BUILD_SHARED_LIBS)
@@ -445,6 +455,16 @@ if (BUILD_SHARED_LIBS)
COMPONENT
fortheaders
)
+ if (HDF5_INSTALL_MOD_FORTRAN MATCHES "SHARED")
+ install (
+ FILES
+ ${modsh_files}
+ DESTINATION
+ ${HDF5_INSTALL_INCLUDE_DIR}
+ COMPONENT
+ fortheaders
+ )
+ endif ()
endif ()
#-----------------------------------------------------------------------------