Skip to content

Commit

Permalink
always define DLLDEF
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Nov 9, 2023
1 parent 7f9b594 commit 0bc3426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fortran/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ endif ()
if (BUILD_SHARED_LIBS)
if(MSVC)
set(DLLDEF ${HDF5_F90_SRC_BINARY_DIR}/hdf5_fortrandll.def)
else()
set(DLLDEF "")
endif()
add_library (${HDF5_F90_LIBSH_TARGET} SHARED ${DLLDEF} ${f90_F_SOURCES_SHARED})
target_include_directories (${HDF5_F90_LIBSH_TARGET}
Expand Down
2 changes: 2 additions & 0 deletions hl/fortran/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ endif ()
if (BUILD_SHARED_LIBS)
if(MSVC)
set(DLLDEF ${HDF5_HL_F90_SRC_BINARY_DIR}/hdf5_hl_fortrandll.def)
else()
set(DLLDEF "")
endif()
add_library (${HDF5_HL_F90_LIBSH_TARGET} SHARED ${DLLDEF} ${HDF5_HL_F90_F_SOURCES_SHARED})
target_include_directories (${HDF5_HL_F90_LIBSH_TARGET}
Expand Down

0 comments on commit 0bc3426

Please sign in to comment.