netlib-scalapack: specify MPI's location for Fujitsu-MPI. (#16798)

Fujitsu-MPI wrapper commands aren't recognized from 'FindMPI' 
function of 'cmake'. If we are using the Fujitsu compiler and Fujitsu MPI, 
specify the MPI path information explicitly.
This commit is contained in:
Tomoki, Karatsu 2020-05-25 20:12:13 +09:00 committed by GitHub
parent 6d913ddab7
commit 821c729ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,15 @@ def cmake_args(self):
"-DCMAKE_Fortran_FLAGS=%s" % self.compiler.fc_pic_flag
])
# Specify Fujitsu-MPI's location
if spec.satisfies('%fj') and '^fujitsu-mpi' in spec:
options.extend([
'-DMPI_C_COMPILER=%s' % spec['mpi'].mpicc,
'-DMPI_CXX_COMPILER=%s' % spec['mpi'].mpicxx,
'-DMPI_Fortran_COMPILER=%s' % spec['mpi'].mpifc,
'-DMPI_BASE_DIR=%s' % spec['mpi'].prefix
])
return options
@run_after('install')