sirius, q-e-sirius (#18286)
* sirius: fix bug in shared spec make +shared the default * q-e-sirius: depend on sirius+shared, fix gcc@10 - add missing whitespace in -fallow-argument-mismatch. - require sirius+shared
This commit is contained in:
parent
7fd8f74c23
commit
22329c4f92
2 changed files with 4 additions and 6 deletions
|
@ -57,7 +57,7 @@ class QESirius(Package):
|
|||
depends_on('blas')
|
||||
depends_on('lapack')
|
||||
depends_on('fftw-api@3')
|
||||
depends_on('sirius+fortran')
|
||||
depends_on('sirius+fortran+shared')
|
||||
depends_on('mpi', when='+mpi')
|
||||
depends_on('scalapack', when='+scalapack+mpi')
|
||||
depends_on('elpa+openmp', when='+elpa+openmp')
|
||||
|
@ -172,7 +172,6 @@ def install(self, spec, prefix):
|
|||
options = ['-prefix={0}'.format(prefix_path)]
|
||||
|
||||
sirius = spec['sirius']
|
||||
|
||||
options.append('LIBS={0}'.format(sirius.libs[0]))
|
||||
options.append('LD_LIBS={0}'.format(sirius.libs[0]))
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ class Sirius(CMakePackage, CudaPackage):
|
|||
'gfx1011', 'gfx1012'
|
||||
)
|
||||
|
||||
variant('shared', default=False, description="Build shared libraries")
|
||||
variant('shared', default=True, description="Build shared libraries")
|
||||
variant('openmp', default=True, description="Build with OpenMP support")
|
||||
variant('fortran', default=False, description="Build Fortran bindings")
|
||||
variant('python', default=False, description="Build Python bindings")
|
||||
|
@ -161,7 +161,6 @@ def _def(variant, flag=None):
|
|||
_def('+rocm')
|
||||
]
|
||||
|
||||
if '@:6.2.999' in self.spec:
|
||||
args += [_def('+shared', 'BUILD_SHARED_LIBS')]
|
||||
|
||||
lapack = spec['lapack']
|
||||
|
|
Loading…
Reference in a new issue