summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-01-05 14:45:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-01-05 14:45:09 (GMT)
commit865cc514351c7088e5b5b7dfcbedb7c58e147c1b (patch)
tree2926ddcfd6219e96c4fcb9636dea9f02c8d23cc5 /fortran/src
parent3771df0757094854a676be888e777e1d4c690aa7 (diff)
downloadhdf5-865cc514351c7088e5b5b7dfcbedb7c58e147c1b.zip
hdf5-865cc514351c7088e5b5b7dfcbedb7c58e147c1b.tar.gz
hdf5-865cc514351c7088e5b5b7dfcbedb7c58e147c1b.tar.bz2
[svn-r19908] Change how LINK_FLAGS for fortran are appended on Windows
Diffstat (limited to 'fortran/src')
-rw-r--r--fortran/src/CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt
index 8ad5000..9da2af7 100644
--- a/fortran/src/CMakeLists.txt
+++ b/fortran/src/CMakeLists.txt
@@ -184,19 +184,13 @@ ENDIF (H5_HAVE_PARALLEL)
# Add Main fortran library
#-----------------------------------------------------------------------------
ADD_LIBRARY (${HDF5_F90_LIB_TARGET} ${LIB_TYPE} ${f90_F_SRCS})
-TARGET_FORTRAN_WIN_PROPERTIES (${HDF5_F90_LIB_TARGET})
+TARGET_FORTRAN_WIN_PROPERTIES (${HDF5_F90_LIB_TARGET} "/DLL /DEF:${HDF5_F90_SRC_SOURCE_DIR}/hdf5_fortrandll.def")
IF (WIN32 AND NOT CYGWIN)
IF (BUILD_SHARED_LIBS)
SET_PROPERTY (TARGET ${HDF5_F90_LIB_TARGET}
APPEND PROPERTY COMPILE_DEFINITIONS
BUILD_HDF5_DLL
)
- IF (MSVC)
- SET_PROPERTY (TARGET ${HDF5_F90_LIB_TARGET}
- APPEND PROPERTY LINK_FLAGS
- "/DLL /DEF:${HDF5_F90_SRC_SOURCE_DIR}/hdf5_fortrandll.def"
- )
- ENDIF (MSVC)
ENDIF (BUILD_SHARED_LIBS)
SET_PROPERTY (TARGET ${HDF5_F90_LIB_TARGET}
APPEND PROPERTY COMPILE_DEFINITIONS