From 907217d7c6a8818e1985719d8c7aae6e865c11d3 Mon Sep 17 00:00:00 2001
From: Santiago Ospina <SoilRos@users.noreply.github.com>
Date: Thu, 25 May 2017 23:24:25 +0200
Subject: [PATCH] fixed direct reference of _feature to petsc in
 CHECK_MPI_INTERFACE

---
 cmake/macros/macro_check_mpi_interface.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/macros/macro_check_mpi_interface.cmake b/cmake/macros/macro_check_mpi_interface.cmake
index 2d80db3a86..ea041ddc79 100644
--- a/cmake/macros/macro_check_mpi_interface.cmake
+++ b/cmake/macros/macro_check_mpi_interface.cmake
@@ -54,8 +54,8 @@ MACRO(CHECK_MPI_INTERFACE _feature _var)
         "deal.II picked up."
         )
       TO_STRING(_str ${MPI_LIBRARIES})
-      SET(PETSC_ADDITIONAL_ERROR_STRING
-        ${PETSC_ADDITIONAL_ERROR_STRING}
+      SET(${_feature}_ADDITIONAL_ERROR_STRING
+        ${${_feature}_ADDITIONAL_ERROR_STRING}
         "Could not find a sufficient ${_feature} installation:\n"
         "${_feature} has to be compiled against the same MPI library as deal.II "
         "but the link line of ${_feature} contains:\n"
-- 
2.39.5