diff options
author | Eric Brugger <brugger1@llnl.gov> | 2022-08-15 12:03:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 12:03:57 -0700 |
commit | 68b94acf0d9b948ca4efc1ac8e93937a70b4f5ae (patch) | |
tree | 63467e61d577a4148bc99980233ed1c4759aa18c | |
parent | a68ca0ead9863e6006bc34fd5b2d0e3c205d3109 (diff) | |
download | spack-68b94acf0d9b948ca4efc1ac8e93937a70b4f5ae.tar.gz spack-68b94acf0d9b948ca4efc1ac8e93937a70b4f5ae.tar.bz2 spack-68b94acf0d9b948ca4efc1ac8e93937a70b4f5ae.tar.xz spack-68b94acf0d9b948ca4efc1ac8e93937a70b4f5ae.zip |
MFEM: Add an exceptions variant. (#32096)
-rw-r--r-- | var/spack/repos/builtin/packages/mfem/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mfem/package.py b/var/spack/repos/builtin/packages/mfem/package.py index 0d20dd6180..dab89f9550 100644 --- a/var/spack/repos/builtin/packages/mfem/package.py +++ b/var/spack/repos/builtin/packages/mfem/package.py @@ -180,6 +180,7 @@ class Mfem(Package, CudaPackage, ROCmPackage): ) variant("examples", default=False, description="Build and install examples") variant("miniapps", default=False, description="Build and install miniapps") + variant("exceptions", default=False, description="Enable the use of exceptions") conflicts("+shared", when="@:3.3.2") conflicts("~static~shared") @@ -531,6 +532,7 @@ class Mfem(Package, CudaPackage, ROCmPackage): "MFEM_USE_FMS=%s" % yes_no("+fms"), "MFEM_MPIEXEC=%s" % mfem_mpiexec, "MFEM_MPIEXEC_NP=%s" % mfem_mpiexec_np, + "MFEM_USE_EXCEPTIONS=%s" % yes_no("+exceptions"), ] cxxflags = spec.compiler_flags["cxxflags"] |