diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-08 21:57:49 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-08 21:57:49 (GMT) |
commit | 13beaa1a6fa80a2d1f4aab42f9c5e1740853bbf0 (patch) | |
tree | ee1f5ad6bcb2996891d356f9c8ec8c24653c2008 /fortran/src/CMakeLists.txt | |
parent | 09ecf212c6e783ab8c8bdc6f7d537d453fb0d1c8 (diff) | |
download | hdf5-13beaa1a6fa80a2d1f4aab42f9c5e1740853bbf0.zip hdf5-13beaa1a6fa80a2d1f4aab42f9c5e1740853bbf0.tar.gz hdf5-13beaa1a6fa80a2d1f4aab42f9c5e1740853bbf0.tar.bz2 |
[svn-r21194] Add parallel version of windows def file for fortran exports
Diffstat (limited to 'fortran/src/CMakeLists.txt')
-rw-r--r-- | fortran/src/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt index ef858c6..e2da265 100644 --- a/fortran/src/CMakeLists.txt +++ b/fortran/src/CMakeLists.txt @@ -182,9 +182,13 @@ IF (WIN32 AND NOT CYGWIN) SET_PROPERTY (TARGET ${HDF5_F90_LIB_TARGET} APPEND PROPERTY COMPILE_DEFINITIONS BUILD_HDF5_DLL - ) + ) IF (MSVC) - SET (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_F90_SRC_SOURCE_DIR}/hdf5_fortrandll.def") + IF (H5_HAVE_PARALLEL) + SET (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_F90_SRC_SOURCE_DIR}/phdf5_fortrandll.def") + ELSE (H5_HAVE_PARALLEL) + SET (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_F90_SRC_SOURCE_DIR}/hdf5_fortrandll.def") + ENDIF (H5_HAVE_PARALLEL) ENDIF (MSVC) ENDIF (BUILD_SHARED_LIBS) SET_PROPERTY (TARGET ${HDF5_F90_LIB_TARGET} |