From 6a90ad52837c2287d7d92d4cac6249f504c75135 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Sat, 31 Jul 2021 12:19:25 +0200 Subject: Also detect MPI compiler for mpif90 and mpif77 wrappers --- src/fpm_compiler.f90 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fpm_compiler.f90 b/src/fpm_compiler.f90 index 77c94c4..32dfe33 100644 --- a/src/fpm_compiler.f90 +++ b/src/fpm_compiler.f90 @@ -453,7 +453,9 @@ function get_compiler_id(compiler) result(id) integer :: stat, io ! Check whether we are dealing with an MPI compiler wrapper first - if (check_compiler(compiler, "mpifort")) then + if (check_compiler(compiler, "mpifort") & + & .or. check_compiler(compiler, "mpif90") & + & .or. check_compiler(compiler, "mpif77")) then output = get_temp_filename() call run(compiler//" -showme:command > "//output//" 2>&1", & & echo=.false., exitstat=stat) -- cgit v1.2.3