summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-08-04 21:38:20 (GMT)
committerGitHub <noreply@github.com>2023-08-04 21:38:20 (GMT)
commit37c60bcea8694ec5d1118feb5a9bc7145d29b045 (patch)
tree332004df4fb4fcef68b88d494dd90147345906b6 /hl
parentede4987b636df78637d9357d00dba172278c2362 (diff)
downloadhdf5-37c60bcea8694ec5d1118feb5a9bc7145d29b045.zip
hdf5-37c60bcea8694ec5d1118feb5a9bc7145d29b045.tar.gz
hdf5-37c60bcea8694ec5d1118feb5a9bc7145d29b045.tar.bz2
Add Fortran ES module to deploy list (#3341)
* Add Fortran ES module to deploy list * Change fortran mod file export to use a list of names
Diffstat (limited to 'hl')
-rw-r--r--hl/fortran/src/CMakeLists.txt30
1 files changed, 14 insertions, 16 deletions
diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt
index 705a37a..0aa0f15 100644
--- a/hl/fortran/src/CMakeLists.txt
+++ b/hl/fortran/src/CMakeLists.txt
@@ -235,16 +235,19 @@ endif ()
# Add file(s) to CMake Install
#-----------------------------------------------------------------------------
+set (mod_export_files
+ h5ds.mod
+ h5tb.mod
+ h5tb_const.mod
+ h5lt.mod
+ h5lt_const.mod
+ h5im.mod
+)
if (BUILD_STATIC_LIBS)
- set (mod_files
- ${MOD_BUILD_DIR}/h5ds.mod
- ${MOD_BUILD_DIR}/h5tb.mod
- ${MOD_BUILD_DIR}/h5tb_const.mod
- ${MOD_BUILD_DIR}/h5lt.mod
- ${MOD_BUILD_DIR}/h5lt_const.mod
- ${MOD_BUILD_DIR}/h5im.mod
- )
+ foreach (mod_file ${mod_export_files})
+ set (mod_files ${mod_files} ${MOD_BUILD_DIR}/${mod_file})
+ endforeach ()
install (
FILES
${mod_files}
@@ -265,14 +268,9 @@ if (BUILD_STATIC_LIBS)
endif ()
endif ()
if (BUILD_SHARED_LIBS)
- set (modsh_files
- ${MODSH_BUILD_DIR}/h5ds.mod
- ${MODSH_BUILD_DIR}/h5tb.mod
- ${MODSH_BUILD_DIR}/h5tb_const.mod
- ${MODSH_BUILD_DIR}/h5lt.mod
- ${MODSH_BUILD_DIR}/h5lt_const.mod
- ${MODSH_BUILD_DIR}/h5im.mod
- )
+ foreach (mod_file ${mod_export_files})
+ set (modsh_files ${modsh_files} ${MODSH_BUILD_DIR}/${mod_file})
+ endforeach ()
install (
FILES
${modsh_files}