Adiak package: use correct CMake MPI variables (#30086)
This commit is contained in:
parent
cf21fd837f
commit
374ebe5840
@ -30,8 +30,8 @@ class Adiak(CMakePackage):
|
|||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
args = []
|
args = []
|
||||||
if self.spec.satisfies('+mpi'):
|
if self.spec.satisfies('+mpi'):
|
||||||
args.append('-DMPICXX=%s' % self.spec['mpi'].mpicxx)
|
args.append('-DMPI_CXX_COMPILER=%s' % self.spec['mpi'].mpicxx)
|
||||||
args.append('-DMPICC=%s' % self.spec['mpi'].mpicc)
|
args.append('-DMPI_C_COMPILER=%s' % self.spec['mpi'].mpicc)
|
||||||
args.append('-DENABLE_MPI=ON')
|
args.append('-DENABLE_MPI=ON')
|
||||||
else:
|
else:
|
||||||
args.append('-DENABLE_MPI=OFF')
|
args.append('-DENABLE_MPI=OFF')
|
||||||
|
Loading…
Reference in New Issue
Block a user