Skip to content

Commit 797764b

Browse files
committed
findHDF5: add missing no_default_path include suffix
1 parent 6486000 commit 797764b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/Modules/FindHDF5.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ if(HDF5_ROOT OR DEFINED ENV{HDF5_ROOT})
234234
find_path(HDF5_Fortran_INCLUDE_DIR
235235
NAMES hdf5.mod
236236
NO_DEFAULT_PATH
237-
HINTS ${HDF5_ROOT} ENV HDF5_ROOT
238-
PATH_SUFFIXES ${hdf5_msuf}
237+
HINTS ${HDF5_C_INCLUDE_DIR} ${HDF5_ROOT} ENV HDF5_ROOT
238+
PATH_SUFFIXES include
239239
DOC "HDF5 Fortran module path"
240240
)
241241
else()

0 commit comments

Comments
 (0)