fenics: add HDF5_NO_FIND_PACKAGE_CONFIG_FILE to cmake opts in FEniCS (#24922)

In some cases the FindHDF5.cmake returnd a wrong value for the HDF5 library names and path. For example it returns hdf5-shared as library name without a search path or checking if this is really an existing shared library. By HDF5_NO_FIND_PACKAGE_CONFIG_FILE=True/ON to the cmake options, the FindHDF5 module does not rely on a properly install hdf5-config.cmake and thus searches for the library and its paths. This results in a usable return value and fenics works afterwards.
This commit is contained in:
Martin Köhler 2021-07-20 10:16:00 +02:00 committed by GitHub
parent 55e247b407
commit 887820ecb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,7 @@ def cmake_args(self):
self.define_from_variant('DOLFIN_ENABLE_OPENMP', 'openmp'),
self.define_from_variant('DOLFIN_ENABLE_CHOLMOD', 'suite-sparse'),
self.define_from_variant('DOLFIN_ENABLE_HDF5', 'hdf5'),
self.define_from_variant('HDF5_NO_FIND_PACKAGE_CONFIG_FILE', 'hdf5'),
self.define_from_variant('DOLFIN_ENABLE_MPI', 'mpi'),
self.define_from_variant('DOLFIN_ENABLE_PARMETIS', 'parmetis'),
self.define_from_variant('DOLFIN_ENABLE_PETSC', 'petsc'),