summaryrefslogtreecommitdiffstats
path: root/config/cmake/HDF5UseFortran.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-09-27 14:18:46 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-09-27 14:18:46 (GMT)
commitc6af94c8edb8bff9f431ec84b1c0de729b6fca48 (patch)
tree8dc473a4dcd6ac1b2873160e720016467b5f9c1d /config/cmake/HDF5UseFortran.cmake
parent4af3cd2b7a89b2eeed05d5ec0b0641ca7c2545bc (diff)
downloadhdf5-c6af94c8edb8bff9f431ec84b1c0de729b6fca48.zip
hdf5-c6af94c8edb8bff9f431ec84b1c0de729b6fca48.tar.gz
hdf5-c6af94c8edb8bff9f431ec84b1c0de729b6fca48.tar.bz2
[svn-r21423] Add 2003 fortran to cmake build/configure
Tested: local linux
Diffstat (limited to 'config/cmake/HDF5UseFortran.cmake')
-rw-r--r--config/cmake/HDF5UseFortran.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/cmake/HDF5UseFortran.cmake b/config/cmake/HDF5UseFortran.cmake
index 1f429f5..c1c5acb 100644
--- a/config/cmake/HDF5UseFortran.cmake
+++ b/config/cmake/HDF5UseFortran.cmake
@@ -110,6 +110,15 @@ CHECK_FORTRAN_FEATURE(RealIsNotDouble
FORTRAN_DEFAULT_REAL_NOT_DOUBLE
)
+CHECK_FORTRAN_FEATURE(iso_c_binding
+ "
+ PROGRAM main
+ USE iso_c_binding
+ END PROGRAM
+ "
+ FORTRAN_HAVE_ISO_C_BINDING
+)
+
#-----------------------------------------------------------------------------
# Add debug information (intel Fortran : JB)
#-----------------------------------------------------------------------------