diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-02-05 10:10:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 10:10:58 +0100 |
commit | 478203dc681894cb6137ec23b8ef20f419ba8543 (patch) | |
tree | 49951d5cd76335a0f11672dc5350e1908fd2b2d8 /var | |
parent | 5713ffd143e0eadfae6aeae7d73088d87521d08d (diff) | |
download | spack-478203dc681894cb6137ec23b8ef20f419ba8543.tar.gz spack-478203dc681894cb6137ec23b8ef20f419ba8543.tar.bz2 spack-478203dc681894cb6137ec23b8ef20f419ba8543.tar.xz spack-478203dc681894cb6137ec23b8ef20f419ba8543.zip |
asio: remove self-referential dependencies (#42469)
These shouldn't be an issue, but they can be expressed
in terms of variants on the package.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/asio/package.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/asio/package.py b/var/spack/repos/builtin/packages/asio/package.py index c3b52d02cc..9931301615 100644 --- a/var/spack/repos/builtin/packages/asio/package.py +++ b/var/spack/repos/builtin/packages/asio/package.py @@ -83,13 +83,11 @@ class Asio(AutotoolsPackage): variant("separate_compilation", default=False, description="Compile Asio sources separately") variant("boost_coroutine", default=False, description="Enable support for Boost.Coroutine.") - depends_on("boost +context +coroutine", when="+boost_coroutine") - variant("boost_regex", default=False, description="Enable support for Boost.Regex.") - depends_on("boost +regex", when="+boost_regex") for std in stds: - depends_on("boost cxxstd=" + std, when="cxxstd={0} ^boost".format(std)) + depends_on(f"boost +regex cxxstd={std}", when=f"cxxstd={std} +boost_regex") + depends_on(f"boost +context+coroutine cxxstd={std}", when=f"cxxstd={std} +boost_coroutine") def configure_args(self): variants = self.spec.variants |