summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshwin Kumar Karnad <46030335+iamashwin99@users.noreply.github.com>2023-07-17 19:53:29 +0200
committerGitHub <noreply@github.com>2023-07-17 13:53:29 -0400
commitc9b7eb36476992f361a3c4ca6e348a2a41e81b64 (patch)
tree3589e44cecc2504bf98c5d43c81e615ad9c9c3b5
parent1100cdf5a00ffd9a2c1624e35d504b148cb9a977 (diff)
downloadspack-c9b7eb36476992f361a3c4ca6e348a2a41e81b64.tar.gz
spack-c9b7eb36476992f361a3c4ca6e348a2a41e81b64.tar.bz2
spack-c9b7eb36476992f361a3c4ca6e348a2a41e81b64.tar.xz
spack-c9b7eb36476992f361a3c4ca6e348a2a41e81b64.zip
libxc: add kxc and lxc variants (#38937)
* libxc: add kxc and lxc variants * libxc: add kxc and lxc variants for @5:0: * Apply suggestion from @tldahlgren --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/libxc/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libxc/package.py b/var/spack/repos/builtin/packages/libxc/package.py
index 46853d75a0..27b3ae222d 100644
--- a/var/spack/repos/builtin/packages/libxc/package.py
+++ b/var/spack/repos/builtin/packages/libxc/package.py
@@ -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")
@@ -118,6 +120,10 @@ class Libxc(AutotoolsPackage, CudaPackage):
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")