Fix HDF5+mpi~fortran (#35400)

* HDF5+mpi~fortran
* fix style
This commit is contained in:
Sajid Ali 2023-03-14 18:04:34 -05:00 committed by GitHub
parent 32f8ee6d58
commit 9a1254063a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -583,10 +583,12 @@ def cmake_args(self):
[
"-DMPI_CXX_COMPILER:PATH=%s" % spec["mpi"].mpicxx,
"-DMPI_C_COMPILER:PATH=%s" % spec["mpi"].mpicc,
"-DMPI_Fortran_COMPILER:PATH=%s" % spec["mpi"].mpifc,
]
)
if "+fortran" in spec:
args.extend(["-DMPI_Fortran_COMPILER:PATH=%s" % spec["mpi"].mpifc])
# work-around for https://github.com/HDFGroup/hdf5/issues/1320
if spec.satisfies("@1.10.8,1.13.0"):
args.append(self.define("HDF5_INSTALL_CMAKE_DIR", "share/cmake/hdf5"))