quantum-espresso: support libxc also for autotools build (#30895)
This commit is contained in:
parent
73ce789390
commit
8ef937032c
@ -56,16 +56,15 @@ class QuantumEspresso(CMakePackage):
|
|||||||
with when('+cmake'):
|
with when('+cmake'):
|
||||||
depends_on("cmake@3.14.0:", type="build")
|
depends_on("cmake@3.14.0:", type="build")
|
||||||
conflicts('@:6.7', msg='+cmake works since QE v6.8')
|
conflicts('@:6.7', msg='+cmake works since QE v6.8')
|
||||||
|
|
||||||
variant('libxc', default=False, description='Uses libxc')
|
|
||||||
depends_on('libxc@5.1.2:', when='+libxc')
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
# variant(
|
# variant(
|
||||||
# 'gpu', default='none', description='Builds with GPU support',
|
# 'gpu', default='none', description='Builds with GPU support',
|
||||||
# values=('nvidia', 'none'), multi=False
|
# values=('nvidia', 'none'), multi=False
|
||||||
# )
|
# )
|
||||||
|
|
||||||
|
variant('libxc', default=False, description='Uses libxc')
|
||||||
|
depends_on('libxc@5.1.2:', when='+libxc')
|
||||||
|
|
||||||
variant('openmp', default=False, description='Enables openMP support')
|
variant('openmp', default=False, description='Enables openMP support')
|
||||||
# Need OpenMP threaded FFTW and BLAS libraries when configured
|
# Need OpenMP threaded FFTW and BLAS libraries when configured
|
||||||
# with OpenMP support
|
# with OpenMP support
|
||||||
@ -466,6 +465,10 @@ def install(self, spec, prefix):
|
|||||||
scalapack_lib = spec['scalapack'].libs
|
scalapack_lib = spec['scalapack'].libs
|
||||||
options.append('SCALAPACK_LIBS={0}'.format(scalapack_lib.ld_flags))
|
options.append('SCALAPACK_LIBS={0}'.format(scalapack_lib.ld_flags))
|
||||||
|
|
||||||
|
if '+libxc' in spec:
|
||||||
|
options.append('--with-libxc=yes')
|
||||||
|
options.append('--with-libxc-prefix={0}'.format(spec['libxc'].prefix))
|
||||||
|
|
||||||
if '+elpa' in spec:
|
if '+elpa' in spec:
|
||||||
|
|
||||||
# Spec for elpa
|
# Spec for elpa
|
||||||
|
Loading…
Reference in New Issue
Block a user