summaryrefslogtreecommitdiff
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-06 13:00:01 +0000
committerKitware Robot <kwrobot@kitware.com>2017-12-06 08:00:07 -0500
commitb6dd3969e819a7a2508c8f705ef7e13fb7e11dff (patch)
tree1afd55f66203598e87839aee81490b76ddd10bbc /Modules/FindMPI.cmake
parenta442624def318c950936c8d49964c4b3bfb0487d (diff)
parent2047eb360de5a9d2a8cac6a689bd7846c5a0128f (diff)
downloadcmake-b6dd3969e819a7a2508c8f705ef7e13fb7e11dff.tar.gz
Merge topic 'findmpi-found-cond'
2047eb36 FindMPI: Fix multiple configure runs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1556
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 3320a075d8..94e07e768c 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -1336,7 +1336,7 @@ foreach(LANG IN ITEMS C CXX Fortran)
set(MPI_${LANG}_FIND_VERSION_EXACT ${MPI_FIND_VERSION_EXACT})
unset(MPI_${LANG}_REQUIRED_VARS)
- if (MPI_${LANG}_WRAPPER_FOUND OR MPI_${LANG}_GUESS_FOUND)
+ if (NOT "${MPI_${LANG}_COMPILER}" STREQUAL "${CMAKE_${LANG}_COMPILER}")
foreach(mpilibname IN LISTS MPI_${LANG}_LIB_NAMES)
list(APPEND MPI_${LANG}_REQUIRED_VARS "MPI_${mpilibname}_LIBRARY")
endforeach()