bigdft-psolver: fix build failure (#46482)

Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
This commit is contained in:
Henri Menke 2024-09-26 13:53:32 +02:00 committed by GitHub
parent 95966ce10a
commit 8290e7d947
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ class BigdftPsolver(AutotoolsPackage, CudaPackage):
of BigDFT code, and it can also be used separately and linked to other codes."""
homepage = "https://bigdft.org/"
url = "https://gitlab.com/l_sim/bigdft-suite/-/archive/1.9.2/bigdft-suite-1.9.2.tar.gz"
url = "https://gitlab.com/l_sim/bigdft-suite/-/archive/1.9.5/bigdft-suite-1.9.5.tar.gz"
git = "https://gitlab.com/l_sim/bigdft-suite.git"
version("develop", branch="devel")
@ -23,16 +23,15 @@ class BigdftPsolver(AutotoolsPackage, CudaPackage):
version("1.9.1", sha256="3c334da26d2a201b572579fc1a7f8caad1cbf971e848a3e10d83bc4dc8c82e41")
version("1.9.0", sha256="4500e505f5a29d213f678a91d00a10fef9dc00860ea4b3edf9280f33ed0d1ac8")
depends_on("c", type="build") # generated
depends_on("cxx", type="build") # generated
depends_on("fortran", type="build") # generated
depends_on("c", type="build")
depends_on("cxx", type="build")
depends_on("fortran", type="build")
variant("mpi", default=True, description="Enable MPI support")
variant("openmp", default=True, description="Enable OpenMP support")
variant("scalapack", default=True, description="Enable SCALAPACK support")
variant(
"shared", default=True, description="Build shared libraries"
) # Not default in bigdft, but is typically the default expectation
# Not default in bigdft, but is typically the default expectation:
variant("shared", default=True, description="Build shared libraries")
depends_on("autoconf", type="build")
depends_on("automake", type="build")
@ -97,7 +96,7 @@ def configure_args(self):
else:
args.append("--without-openmp")
args.append(f"--with-atlab-libs={spec['bigdft-atlab'].prefix.lib}")
args.append(f"--with-atlab-libs={spec['bigdft-atlab'].libs.ld_flags}")
if spec.satisfies("+cuda"):
args.append("--enable-cuda-gpu")