Merge branch 'root6' of gitea.psi.ch:LMU/musrfit into root6
Build and Deploy Documentation / build-and-deploy (push) Successful in 36s

This commit is contained in:
2026-07-29 13:04:30 +02:00
+10 -2
View File
@@ -278,18 +278,26 @@ if (nexus)
find_package(HDF5 COMPONENTS CXX REQUIRED)
if (HAVE_HDF4)
#--- check for HDF4 -----------------------------------------------------------
# Find HDF4 manually (pkg-config often doesn't have hdf4)
# Find HDF4 manually (pkg-config often doesn't have hdf4). In addition to the
# standard system locations, also look under /usr/local/hdf4 and /opt/local
# (MacPorts), which are common self-built/ported install prefixes and are not
# part of CMake's default search path. HDF4 built with its own CMake build
# system (as opposed to the autotools build) names the low-level library
# 'hdf' instead of 'df', so both names are accepted.
find_path(HDF4_INCLUDE_DIR
NAMES mfhdf.h
HINTS /usr/local/hdf4/include /opt/local/include/hdf
PATH_SUFFIXES hdf
)
find_library(HDF4_DF_LIBRARY
NAMES df libdf
NAMES df libdf hdf libhdf
HINTS /usr/local/hdf4/lib /opt/local/lib
)
find_library(HDF4_MFHDF_LIBRARY
NAMES mfhdf libmfhdf
HINTS /usr/local/hdf4/lib /opt/local/lib
)
if (HDF4_INCLUDE_DIR AND HDF4_DF_LIBRARY AND HDF4_MFHDF_LIBRARY)