MFEM: Add an exceptions variant. (#32096)

This commit is contained in:
Eric Brugger
2022-08-15 12:03:57 -07:00
committed by GitHub
parent a68ca0ead9
commit 68b94acf0d

View File

@@ -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 @@ def find_optional_library(name, prefix):
"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"]