summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-02-06 13:37:40 +0100
committerGitHub <noreply@github.com>2024-02-06 13:37:40 +0100
commitae000f963c797db007ac3f8401e6c4dbc1edff00 (patch)
tree9cc4cc67c24b981aed0d3db27e7377f9cc89a150
parent0960f691a1ad80beeb32a95ea77edcf2f3fc79cc (diff)
downloadspack-ae000f963c797db007ac3f8401e6c4dbc1edff00.tar.gz
spack-ae000f963c797db007ac3f8401e6c4dbc1edff00.tar.bz2
spack-ae000f963c797db007ac3f8401e6c4dbc1edff00.tar.xz
spack-ae000f963c797db007ac3f8401e6c4dbc1edff00.zip
hpx: remove self-referential dependencies (#42485)
This shouldn't be an issue, but avoid self references on "^asio".
-rw-r--r--var/spack/repos/builtin/packages/hpx/package.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py
index c0ec68df22..5e8e3b4536 100644
--- a/var/spack/repos/builtin/packages/hpx/package.py
+++ b/var/spack/repos/builtin/packages/hpx/package.py
@@ -105,11 +105,10 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
depends_on("boost +context", when="+generic_coroutines")
for cxxstd in cxxstds:
depends_on("boost cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0}".format(cxxstd))
- depends_on("asio", when="@1.7:")
- for cxxstd in cxxstds:
- depends_on(
- "asio cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0} ^asio".format(cxxstd)
- )
+
+ with when("@1.7:"):
+ for cxxstd in cxxstds:
+ depends_on(f"asio cxxstd={map_cxxstd(cxxstd)}", when=f"cxxstd={cxxstd}")
depends_on("gperftools", when="malloc=tcmalloc")
depends_on("jemalloc", when="malloc=jemalloc")