Skip to content
Snippets Groups Projects
Commit fd18c6e6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix for petsc 3.4 does not seem to work everywhere

parent e9e45cea
No related branches found
No related tags found
No related merge requests found
...@@ -873,9 +873,9 @@ if(HAVE_SOLVER) ...@@ -873,9 +873,9 @@ if(HAVE_SOLVER)
PETSC_VARIABLES NEWLINE_CONSUME) PETSC_VARIABLES NEWLINE_CONSUME)
# find include directories # find include directories
list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/include) list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/include)
if(NOT HAVE_MPI) # necessary for PETSC >= 3.4 #if(NOT HAVE_MPI) # necessary for PETSC >= 3.4
list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/include/mpiuni) # list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/include/mpiuni)
endif(NOT HAVE_MPI) #endif(NOT HAVE_MPI)
list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/${ENV_PETSC_ARCH}/include) list(APPEND EXTERNAL_INCLUDES ${ENV_PETSC_DIR}/${ENV_PETSC_ARCH}/include)
string(REGEX MATCH "PACKAGES_INCLUDES = [^\n\r]*" PETSC_PACKAGES_INCLUDES string(REGEX MATCH "PACKAGES_INCLUDES = [^\n\r]*" PETSC_PACKAGES_INCLUDES
${PETSC_VARIABLES}) ${PETSC_VARIABLES})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment