summaryrefslogtreecommitdiffstats
path: root/config/cmake/HDF5UseFortran.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-08-19 15:11:10 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-08-19 15:11:10 (GMT)
commit13426d47feb8b5d417c83a1b38de08fff66cf1e0 (patch)
treeb6eb4329c68168b9d36dd6dd001619175e5b1faf /config/cmake/HDF5UseFortran.cmake
parent5213c69fd59f34733dcbd5285ddc00d2b2b9e7a5 (diff)
downloadhdf5-13426d47feb8b5d417c83a1b38de08fff66cf1e0.zip
hdf5-13426d47feb8b5d417c83a1b38de08fff66cf1e0.tar.gz
hdf5-13426d47feb8b5d417c83a1b38de08fff66cf1e0.tar.bz2
[svn-r21263] Add F2003 support to CMake builds
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)
#-----------------------------------------------------------------------------