diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-07-09 18:03:58 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-07-09 18:03:58 (GMT) |
commit | 07a52ecb2ffa1d8d32f06db23470833899db3deb (patch) | |
tree | 9907361e0bcf965328735951ebb622399c6fb107 /hl | |
parent | 4b122440910911a51e8440d37db27960476d4d11 (diff) | |
download | hdf5-07a52ecb2ffa1d8d32f06db23470833899db3deb.zip hdf5-07a52ecb2ffa1d8d32f06db23470833899db3deb.tar.gz hdf5-07a52ecb2ffa1d8d32f06db23470833899db3deb.tar.bz2 |
HDFFV-11116 Add option for install location of Fortran MOD files
Diffstat (limited to 'hl')
-rw-r--r-- | hl/fortran/src/CMakeLists.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt index 71b9380..d682d5f 100644 --- a/hl/fortran/src/CMakeLists.txt +++ b/hl/fortran/src/CMakeLists.txt @@ -234,7 +234,6 @@ if (NOT ONLY_SHARED_LIBS) ${MOD_BUILD_DIR}/h5lt_const.mod ${MOD_BUILD_DIR}/h5im.mod ) - install ( FILES ${mod_files} @@ -243,6 +242,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) set (modsh_files @@ -261,6 +270,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 () #----------------------------------------------------------------------------- |