Skip to content
Snippets Groups Projects
Commit e548664c authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'issue/petsc-witout-mpi' into 'develop'

Fix petsc configuration when pugs is built without mpi support

See merge request !62
parents df510dff 9963d6a0
No related branches found
No related tags found
1 merge request!62Fix petsc configuration when pugs is built without mpi support
......@@ -156,8 +156,14 @@ set(PUGS_ENABLE_PETSC AUTO CACHE STRING
"Choose one of: AUTO ON OFF")
if (PUGS_ENABLE_PETSC MATCHES "^(AUTO|ON)$")
if (MPI_FOUND)
# PETSc support is deactivated if MPI is not found
pkg_check_modules(PETSC PETSc)
else()
message(STATUS "PETSc support is deactivated since pugs will not be build with MPI support")
set(PETSC_FOUND FALSE)
unset(PUGS_HAS_PETSC)
endif()
set(PUGS_HAS_PETSC ${PETSC_FOUND})
else()
unset(PUGS_HAS_PETSC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment