Add boost variant to henson and require it for aarch64 (#38916)

This commit is contained in:
Dmitriy 2023-07-20 11:29:18 -07:00 committed by GitHub
parent 294d81e99e
commit d1d2d76183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,12 +23,17 @@ class Henson(CMakePackage):
depends_on("py-mpi4py", when="+python", type=("build", "run"))
variant("mpi-wrappers", default=False, description="Build MPI wrappers (PMPI)")
variant("boost", default=False, description="Use Boost for coroutine support")
depends_on("boost+context", when="+boost", type=("build", "run"))
conflicts("~boost", when="target=aarch64:")
conflicts("^openmpi", when="+mpi-wrappers")
def cmake_args(self):
args = [
self.define_from_variant("python", "python"),
self.define_from_variant("mpi-wrappers", "mpi-wrappers"),
self.define_from_variant("use_boost", "boost"),
]
if self.spec.satisfies("+python"):