MFEM: Add an exceptions variant. (#32096)
This commit is contained in:
parent
a68ca0ead9
commit
68b94acf0d
@ -180,6 +180,7 @@ class Mfem(Package, CudaPackage, ROCmPackage):
|
|||||||
)
|
)
|
||||||
variant("examples", default=False, description="Build and install examples")
|
variant("examples", default=False, description="Build and install examples")
|
||||||
variant("miniapps", default=False, description="Build and install miniapps")
|
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("+shared", when="@:3.3.2")
|
||||||
conflicts("~static~shared")
|
conflicts("~static~shared")
|
||||||
@ -531,6 +532,7 @@ def find_optional_library(name, prefix):
|
|||||||
"MFEM_USE_FMS=%s" % yes_no("+fms"),
|
"MFEM_USE_FMS=%s" % yes_no("+fms"),
|
||||||
"MFEM_MPIEXEC=%s" % mfem_mpiexec,
|
"MFEM_MPIEXEC=%s" % mfem_mpiexec,
|
||||||
"MFEM_MPIEXEC_NP=%s" % mfem_mpiexec_np,
|
"MFEM_MPIEXEC_NP=%s" % mfem_mpiexec_np,
|
||||||
|
"MFEM_USE_EXCEPTIONS=%s" % yes_no("+exceptions"),
|
||||||
]
|
]
|
||||||
|
|
||||||
cxxflags = spec.compiler_flags["cxxflags"]
|
cxxflags = spec.compiler_flags["cxxflags"]
|
||||||
|
Loading…
Reference in New Issue
Block a user