octave: make sure to find the serial hdf5 include first

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
Thorsten Liebig 2022-02-15 19:12:06 +01:00
parent 46f4084555
commit d4448fa294

View File

@ -19,7 +19,7 @@ if isOctave()
fflush(stdout); fflush(stdout);
if isunix if isunix
[res, fn_so] = unix('find /usr/lib -name libhdf5.so'); [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 if length(fn_so)>0 && length(fn_h)>0
[hdf5lib_dir, hdf5lib_fn, ext] = fileparts(fn_so); [hdf5lib_dir, hdf5lib_fn, ext] = fileparts(fn_so);
disp(["HDF5 library path found at: " hdf5lib_dir]) disp(["HDF5 library path found at: " hdf5lib_dir])