Skip to content

Commit

Permalink
CMake: Fix mingw/fortran build (HDFGroup#4466)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller authored and lrknox committed May 20, 2024
1 parent 8c6e40c commit abd95e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fortran/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ if (BUILD_STATIC_LIBS)
endif ()

if (BUILD_SHARED_LIBS)
if(WIN32)
if(MSVC)
set(DLLDEF ${HDF5_F90_SRC_BINARY_DIR}/hdf5_fortrandll.def)
else()
set(DLLDEF "")
Expand Down
2 changes: 1 addition & 1 deletion hl/fortran/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ if (BUILD_STATIC_LIBS)
add_dependencies(${HDF5_HL_F90_LIB_TARGET} H5HLgen)
endif ()
if (BUILD_SHARED_LIBS)
if(WIN32)
if(MSVC)
set(DLLDEF ${HDF5_HL_F90_SRC_BINARY_DIR}/hdf5_hl_fortrandll.def)
else()
set(DLLDEF "")
Expand Down

0 comments on commit abd95e7

Please sign in to comment.