From 86b874d724625ed936ff6525926e0a64652b9570 Mon Sep 17 00:00:00 2001 From: Damian Rouson Date: Mon, 3 Jun 2024 00:04:04 +0200 Subject: [PATCH] fix(fpm_meta): set MPI on only for --compiler mpi* --- src/fpm_meta.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fpm_meta.f90 b/src/fpm_meta.f90 index 3265b26e47..9b17052f50 100644 --- a/src/fpm_meta.f90 +++ b/src/fpm_meta.f90 @@ -467,7 +467,7 @@ subroutine resolve_metapackage_model(model,package,settings,error) end if ! MPI - if (package%meta%mpi%on) then + if (package%meta%mpi%on .and. any(model%compiler%fc==["mpifort","mpif90 ","mpif77 "])) then call add_metapackage_model(model,package,settings,"mpi",error) if (allocated(error)) return endif