From 57a23a365a88b3bb9383221f0d7528a7483a69c7 Mon Sep 17 00:00:00 2001 From: eschnett Date: Wed, 20 May 2015 20:14:16 +0000 Subject: Correct list of MPI C++ compiler wrappers git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/MPI/trunk@67 043a8217-7a68-40fe-abfd-36aa7d4fa6a8 --- src/detect.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/detect.pl b/src/detect.pl index 26615b7..2f3d7d4 100644 --- a/src/detect.pl +++ b/src/detect.pl @@ -33,7 +33,11 @@ my $mpi_search = 1; my $mpi_build = 0; my $mpi_manual = 0; -my @mpicxx_names = ("mpic++", "mpiCC", "mpicxx", "mpicxx-openmpi-mp", "mpicc"); +# Note: +# - look for "mpiCC" last, since this is equivalent to mpicc on +# case-insensitive file systems +# - don't look for "mpicc", since linking with a C compiler won't work +my @mpicxx_names = ("mpic++", "mpicxx", "mpicxx-openmpi-mp", "mpiCC"); if (!is_set("MPI_DIR")) { message("MPI selected, but MPI_DIR is not set. Computing settings..."); -- cgit v1.2.3