From 13c87a1567b895a98e77b8ac972d2ab03fd73608 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 20 Nov 2015 13:34:16 -0600 Subject: [PATCH] CMake: Compatibility fixes for CMake 3.4.0 CMake 3.4.0 no longer exports MPI__COMPILER as cached variable. Therefore, we also have to make sure to unset ordinary variables (in addition to cached variables) for our "retry" pass. --- cmake/modules/FindMPI.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/FindMPI.cmake b/cmake/modules/FindMPI.cmake index 1a8d0be9df..4e45a53bd8 100644 --- a/cmake/modules/FindMPI.cmake +++ b/cmake/modules/FindMPI.cmake @@ -80,6 +80,9 @@ IF(NOT MPI_CXX_FOUND AND DEAL_II_WITH_MPI) ) # Clear variables so that FIND_PACKAGE runs again: SET(MPI_FOUND) + SET(MPI_CXX_COMPILER) + SET(MPI_C_COMPILER) + SET(MPI_Fortran_COMPILER) UNSET(MPI_CXX_COMPILER CACHE) UNSET(MPI_C_COMPILER CACHE) UNSET(MPI_Fortran_COMPILER CACHE) -- 2.39.5