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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user