Skip to content

Commit 45a6d46

Browse files
committed
FindHDF5: broaden hdf5.mod location search
1 parent 5db3c2e commit 45a6d46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/FindHDF5.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ set(CMAKE_REQUIRED_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${HDF5_C_LIBRARIES})
748748
# C and C_HL library are always needed for Fortran_HL
749749
# use HDF5_Fortran_LIBRARIES as it has the stubs if needed
750750

751-
set(CMAKE_REQUIRED_INCLUDES ${ppath} ${HDF5_Fortran_INCLUDE_DIR})
751+
set(CMAKE_REQUIRED_INCLUDES ${path} ${ppath} ${HDF5_Fortran_INCLUDE_DIR})
752752
# need HDF5_Fortran_INCLUDE_DIR because with HDF5 2.x, it may be distinct from HDF5_Fortran_HL_INCLUDE_DIR,
753753
# and the test program needs to include both hdf5.mod and h5lt.mod
754754

0 commit comments

Comments
 (0)