瀏覽代碼

Merge topic 'fix-13549-make-findmpi-quiet'

8b7a5c6 FindMPI: Set correct variables for calls to FPHSA
David Cole 13 年之前
父節點
當前提交
908f46a161
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Modules/FindMPI.cmake

+ 5 - 0
Modules/FindMPI.cmake

@@ -576,6 +576,11 @@ foreach (lang C CXX Fortran)
       try_regular_compiler(${lang} regular_compiler_worked)
     endif()
 
+    set(MPI_${lang}_FIND_QUIETLY ${MPI_FIND_QUIETLY})
+    set(MPI_${lang}_FIND_REQUIRED ${MPI_FIND_REQUIRED})
+    set(MPI_${lang}_FIND_VERSION ${MPI_FIND_VERSION})
+    set(MPI_${lang}_FIND_VERSION_EXACT ${MPI_FIND_VERSION_EXACT})
+
     if (regular_compiler_worked)
       find_package_handle_standard_args(MPI_${lang} DEFAULT_MSG MPI_${lang}_COMPILER)
     else()