diff options
author | Brad King <brad.king@kitware.com> | 2017-12-06 13:00:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-12-06 13:00:07 (GMT) |
commit | b6dd3969e819a7a2508c8f705ef7e13fb7e11dff (patch) | |
tree | 1afd55f66203598e87839aee81490b76ddd10bbc /Modules/FindMPI.cmake | |
parent | a442624def318c950936c8d49964c4b3bfb0487d (diff) | |
parent | 2047eb360de5a9d2a8cac6a689bd7846c5a0128f (diff) | |
download | CMake-b6dd3969e819a7a2508c8f705ef7e13fb7e11dff.zip CMake-b6dd3969e819a7a2508c8f705ef7e13fb7e11dff.tar.gz CMake-b6dd3969e819a7a2508c8f705ef7e13fb7e11dff.tar.bz2 |
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.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 3320a07..94e07e7 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() |