From 7f2a62a8a15b58063cb3d4595919cf97410e059f Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 7 Nov 2013 09:36:24 +0000 Subject: [PATCH] fix for serial petsc 3.4 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd6a270046..600ffe306f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -873,6 +873,9 @@ if(HAVE_SOLVER) PETSC_VARIABLES NEWLINE_CONSUME) # find include directories list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/include) + if(NOT HAVE_MPI) # necessary for PETSC >= 3.4 + list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/include/mpiuni) + endif(NOT HAVE_MPI) list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/${ENV_PETSC_ARCH}/include) string(REGEX MATCH "PACKAGES_INCLUDES = [^\n\r]*" PETSC_PACKAGES_INCLUDES ${PETSC_VARIABLES}) -- GitLab