CMake: Fix mingw/fortran build (#4466)

This commit is contained in:
Julien Schueller 2024-05-10 19:33:55 +02:00 committed by GitHub
parent 18321dee40
commit 239d2f849d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 "")

View File

@ -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 "")