From acfee2dc297999ed3a825336308ccf086a0314ef Mon Sep 17 00:00:00 2001 From: Giovanni Bussi <giovanni.bussi@gmail.com> Date: Fri, 27 Oct 2017 17:38:53 +0200 Subject: [PATCH] Storing MPIEXEC in Portfile --- macports/Portfile.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/macports/Portfile.in b/macports/Portfile.in index a3624f60a..d08a91a3d 100644 --- a/macports/Portfile.in +++ b/macports/Portfile.in @@ -65,6 +65,11 @@ mpi.setup # To enable mpi, replace a configure flag if {[mpi_variant_isset]} { configure.args-replace --disable-mpi --enable-mpi + # command should be included in a pre-configure block to access properly the mpi.exec variable + pre-configure { + # MPIEXEC is stored so that it can be used to perform tests + configure.args-append MPIEXEC="${mpi.exec}" + } } # Libraries. -- GitLab