summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Köhler <grisuthedragon@users.noreply.github.com>2021-07-20 10:16:00 +0200
committerGitHub <noreply@github.com>2021-07-20 10:16:00 +0200
commit887820ecb5b60419b4dfcf6934549f4155fc27c1 (patch)
treecf21973a1880c0846bd2170060cd9a3100b722ff
parent55e247b407cf677c68c564f60a5cd2d5885e1a25 (diff)
downloadspack-887820ecb5b60419b4dfcf6934549f4155fc27c1.tar.gz
spack-887820ecb5b60419b4dfcf6934549f4155fc27c1.tar.bz2
spack-887820ecb5b60419b4dfcf6934549f4155fc27c1.tar.xz
spack-887820ecb5b60419b4dfcf6934549f4155fc27c1.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/fenics/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fenics/package.py b/var/spack/repos/builtin/packages/fenics/package.py
index 01a2f16019..36eeaef470 100644
--- a/var/spack/repos/builtin/packages/fenics/package.py
+++ b/var/spack/repos/builtin/packages/fenics/package.py
@@ -131,6 +131,7 @@ class Fenics(CMakePackage):
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'),