diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py index 303884351b..c400e24b0b 100644 --- a/var/spack/repos/builtin/packages/hpx/package.py +++ b/var/spack/repos/builtin/packages/hpx/package.py @@ -85,6 +85,7 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage): # Other dependecies depends_on('hwloc') depends_on(Boost.with_default_variants) + depends_on('boost +context', when='+generic_coroutines') for cxxstd in cxxstds: depends_on( "boost cxxstd={0}".format(map_cxxstd(cxxstd)),