diff options
author | Brad King <brad.king@kitware.com> | 2017-12-05 13:36:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-12-05 13:36:52 (GMT) |
commit | 64184762f4daa69785592d890a7caf7dbb498817 (patch) | |
tree | c6abf128b04720dcffa4f01bb3c702aa529fd461 /Modules | |
parent | 64713d4ca0ae864958ecdeaee9642488c3f2cbc7 (diff) | |
parent | 2047eb360de5a9d2a8cac6a689bd7846c5a0128f (diff) | |
download | CMake-64184762f4daa69785592d890a7caf7dbb498817.zip CMake-64184762f4daa69785592d890a7caf7dbb498817.tar.gz CMake-64184762f4daa69785592d890a7caf7dbb498817.tar.bz2 |
Merge branch 'findmpi-found-cond' into release-3.10
Merge-request: !1556
Diffstat (limited to 'Modules')
-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 7f4c44c..2af0329 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() |