diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2012-11-29 14:50:21 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2012-11-29 14:50:21 (GMT) |
commit | 5697dc8f803fc0d9ff69db930953a4b86cb21e27 (patch) | |
tree | 6d036a85aa9e10aca2b9a914c93477d9ea54cd8e /fortran/src/CMakeLists.txt | |
parent | c7440f2f366809e9a51d260327fcdef78427bd0a (diff) | |
download | hdf5-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 'fortran/src/CMakeLists.txt')
-rw-r--r-- | fortran/src/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt index 7cde8df..374bc44 100644 --- a/fortran/src/CMakeLists.txt +++ b/fortran/src/CMakeLists.txt @@ -9,6 +9,9 @@ IF (WIN32 AND NOT CYGWIN) IF (NOT H5_HAVE_PARALLEL) SET (H5_NOPAREXP ";") ENDIF (NOT H5_HAVE_PARALLEL) + IF (NOT HDF5_ENABLE_F2003) + SET (H5_NOF03EXP ";") + ENDIF (NOT HDF5_ENABLE_F2003) CONFIGURE_FILE (${HDF5_F90_SRC_SOURCE_DIR}/hdf5_fortrandll.def.in ${HDF5_F90_SRC_BINARY_DIR}/hdf5_fortrandll.def @ONLY) ENDIF (MSVC) ENDIF (BUILD_SHARED_LIBS) @@ -139,13 +142,13 @@ SET_TARGET_PROPERTIES (${HDF5_F90_C_LIB_TARGET} PROPERTIES LINKER_LANGUAGE C) #----------------------------------------------------------------------------- # Fortran 2003 standard #----------------------------------------------------------------------------- -IF (FORTRAN_HAVE_ISO_C_BINDING AND HDF5_ENABLE_F2003) +IF (HDF5_ENABLE_F2003) # default real is 4 bytes, so include double signatures SET (F_STATUS "_F03") -ELSE (FORTRAN_HAVE_ISO_C_BINDING AND HDF5_ENABLE_F2003) +ELSE (HDF5_ENABLE_F2003) # default real is 8 bytes, so exclude double signatures SET (F_STATUS "_F90") -ENDIF (FORTRAN_HAVE_ISO_C_BINDING AND HDF5_ENABLE_F2003) +ENDIF (HDF5_ENABLE_F2003) #----------------------------------------------------------------------------- # Fortran Real Size |