From 797764b385affd763ba64797d797c12e891f93e4 Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Fri, 1 Oct 2021 12:44:52 -0400 Subject: [PATCH] findHDF5: add missing no_default_path include suffix --- cmake/Modules/FindHDF5.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/FindHDF5.cmake b/cmake/Modules/FindHDF5.cmake index 39f7aeb4..be2317e6 100644 --- a/cmake/Modules/FindHDF5.cmake +++ b/cmake/Modules/FindHDF5.cmake @@ -234,8 +234,8 @@ if(HDF5_ROOT OR DEFINED ENV{HDF5_ROOT}) find_path(HDF5_Fortran_INCLUDE_DIR NAMES hdf5.mod NO_DEFAULT_PATH - HINTS ${HDF5_ROOT} ENV HDF5_ROOT - PATH_SUFFIXES ${hdf5_msuf} + HINTS ${HDF5_C_INCLUDE_DIR} ${HDF5_ROOT} ENV HDF5_ROOT + PATH_SUFFIXES include DOC "HDF5 Fortran module path" ) else()