Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxc: add kxc and lxc variants #38937

Merged
merged 3 commits into from
Jul 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions var/spack/repos/builtin/packages/libxc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Libxc(AutotoolsPackage, CudaPackage):
version("2.2.1", sha256="ade61c1fa4ed238edd56408fd8ee6c2e305a3d5753e160017e2a71817c98fd00")

variant("shared", default=True, description="Build shared libraries")
variant("kxc", default=False, when="@5:", description="Build with third derivatives")
variant("lxc", default=False, when="@5:", description="Build with fourth derivatives")

conflicts("+shared +cuda", msg="Only ~shared supported with +cuda")
conflicts("+cuda", when="@:4", msg="CUDA support only in libxc 5.0.0 and above")
Expand Down Expand Up @@ -118,6 +120,10 @@ def configure_args(self):
args = []
args += self.enable_or_disable("shared")
args += self.enable_or_disable("cuda")
if "+kxc" in self.spec:
args.append("--enable-kxc")
if "+lxc" in self.spec:
args.append("--enable-lxc")
return args

@run_after("configure")
Expand Down