summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-11-29 14:50:21 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-11-29 14:50:21 (GMT)
commit5697dc8f803fc0d9ff69db930953a4b86cb21e27 (patch)
tree6d036a85aa9e10aca2b9a914c93477d9ea54cd8e /CMakeLists.txt
parentc7440f2f366809e9a51d260327fcdef78427bd0a (diff)
downloadhdf5-5697dc8f803fc0d9ff69db930953a4b86cb21e27.zip
hdf5-5697dc8f803fc0d9ff69db930953a4b86cb21e27.tar.gz
hdf5-5697dc8f803fc0d9ff69db930953a4b86cb21e27.tar.bz2
[svn-r23066] HDFFV-8265: create .def file during configure, added F2003 optional functions and refactor ISO_C_BINDING usage in cmake files
Tested: local cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d2db1d..d86d29e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -759,6 +759,11 @@ IF (EXISTS "${HDF5_SOURCE_DIR}/fortran" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/for
IF (HDF5_BUILD_FORTRAN)
OPTION (HDF5_ENABLE_F2003 "Enable FORTRAN 2003 Standard" OFF)
INCLUDE (${HDF5_RESOURCES_DIR}/HDF5UseFortran.cmake)
+ IF (HDF5_ENABLE_F2003)
+ IF (NOT FORTRAN_HAVE_ISO_C_BINDING)
+ SET (HDF5_ENABLE_F2003 OFF)
+ ENDIF (NOT FORTRAN_HAVE_ISO_C_BINDING)
+ ENDIF (HDF5_ENABLE_F2003)
# -----------------------------------------------------------------------
# wrapper script variables