diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/miniqmc/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/miniqmc/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/miniqmc/package.py b/var/spack/repos/builtin/packages/miniqmc/package.py index 06382c75fc..4ac543c4dd 100644 --- a/var/spack/repos/builtin/packages/miniqmc/package.py +++ b/var/spack/repos/builtin/packages/miniqmc/package.py @@ -23,11 +23,19 @@ class Miniqmc(CMakePackage): depends_on('mpi') depends_on('lapack') + # Add missing PGI compiler config + patch('pgi-cmake.patch', when='@:0.4 % nvhpc') + def cmake_args(self): args = [ '-DCMAKE_CXX_COMPILER=%s' % self.spec['mpi'].mpicxx, '-DCMAKE_C_COMPILER=%s' % self.spec['mpi'].mpicc ] + + if self.spec.satisfies('%nvhpc'): + args.append('-DLAPACK_LIBRARIES={0}'.format( + self.spec['lapack'].libs.joined(';'))) + return args def install(self, spec, prefix): |