summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/FORTRAN/H5G/Fortran_sourcefiles.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'HDF5Examples/FORTRAN/H5G/Fortran_sourcefiles.cmake')
-rw-r--r--HDF5Examples/FORTRAN/H5G/Fortran_sourcefiles.cmake30
1 files changed, 24 insertions, 6 deletions
diff --git a/HDF5Examples/FORTRAN/H5G/Fortran_sourcefiles.cmake b/HDF5Examples/FORTRAN/H5G/Fortran_sourcefiles.cmake
index fa38fe6..e2e8e9d 100644
--- a/HDF5Examples/FORTRAN/H5G/Fortran_sourcefiles.cmake
+++ b/HDF5Examples/FORTRAN/H5G/Fortran_sourcefiles.cmake
@@ -9,9 +9,27 @@ set (common_examples
h5ex_g_phase
h5ex_g_create
)
-
-#set (f03_examples
-# h5ex_g_iterate_F03
-# h5ex_g_traverse_F03
-# h5ex_g_visit_F03
-#)
+if (HDF5_VERSION_STRING VERSION_GREATER_EQUAL "1.10.0")
+ set (common_examples
+ ${common_examples}
+ h5ex_g_intermediate
+ h5ex_g_iterate
+ h5ex_g_visit
+ )
+ if (HDF5_VERSION_STRING VERSION_GREATER_EQUAL "1.14.3")
+ set (common_examples
+ ${common_examples}
+ h5ex_g_traverse
+ )
+ endif()
+else ()
+ if (HDF_ENABLE_F2003)
+ set (common_examples
+ ${common_examples}
+ h5ex_g_intermediate
+ h5ex_g_iterate
+ h5ex_g_traverse
+ h5ex_g_visit
+ )
+ endif ()
+endif ()