From d4448fa294723be9bfe270db8ff751faf97c8b85 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 15 Feb 2022 19:12:06 +0100 Subject: [PATCH] octave: make sure to find the serial hdf5 include first Signed-off-by: Thorsten Liebig --- matlab/setup.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/setup.m b/matlab/setup.m index fc13ded..bd79a4a 100644 --- a/matlab/setup.m +++ b/matlab/setup.m @@ -19,7 +19,7 @@ if isOctave() fflush(stdout); if isunix [res, fn_so] = unix('find /usr/lib -name libhdf5.so'); - [res, fn_h] = unix('find /usr/include -name hdf5.h | head -1'); + [res, fn_h] = unix('find /usr/include -name hdf5.h | sort -r | head -1'); if length(fn_so)>0 && length(fn_h)>0 [hdf5lib_dir, hdf5lib_fn, ext] = fileparts(fn_so); disp(["HDF5 library path found at: " hdf5lib_dir])