ascent: add optional occa dep (#38426)
Co-authored-by: cyrush <cyrush@users.noreply.github.com>
This commit is contained in:
parent
42c4a8b388
commit
cb23362b7f
@ -90,6 +90,7 @@ class Ascent(CMakePackage, CudaPackage):
|
||||
variant("dray", default=False, description="Build with Devil Ray support")
|
||||
variant("adios2", default=False, description="Build Adios2 filter support")
|
||||
variant("fides", default=False, description="Build Fides filter support")
|
||||
variant("occa", default=False, description="Build with OCCA support")
|
||||
|
||||
# caliper
|
||||
variant("caliper", default=False, description="Build Caliper support")
|
||||
@ -213,6 +214,9 @@ class Ascent(CMakePackage, CudaPackage):
|
||||
depends_on("mfem+shared", when="+mfem+shared")
|
||||
depends_on("mfem~shared", when="+mfem~shared")
|
||||
|
||||
# occa
|
||||
depends_on("occa", when="+occa")
|
||||
|
||||
# fides
|
||||
depends_on("fides", when="+fides")
|
||||
|
||||
@ -615,6 +619,15 @@ def hostconfig(self):
|
||||
else:
|
||||
cfg.write("# mfem not built by spack \n")
|
||||
|
||||
#######################
|
||||
# OCCA
|
||||
#######################
|
||||
if "+occa" in spec:
|
||||
cfg.write("# occa from spack \n")
|
||||
cfg.write(cmake_cache_entry("OCCA_DIR", spec["occa"].prefix))
|
||||
else:
|
||||
cfg.write("# occa not built by spack \n")
|
||||
|
||||
#######################
|
||||
# Devil Ray
|
||||
#######################
|
||||
|
Loading…
Reference in New Issue
Block a user