Skip to content

Commit

Permalink
FindPETSc: handle petsc-3.6 layout $prefix/lib/petsc-conf/
Browse files Browse the repository at this point in the history
Reported-by: Pierre Jolivet <[email protected]>
  • Loading branch information
jedbrown committed Feb 6, 2015
1 parent de0ad59 commit 732ce5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FindPETSc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ find_package_multipass (PETSc petsc_config_current

# Determine whether the PETSc layout is old-style (through 2.3.3) or
# new-style (>= 3.0.0)
if (EXISTS "${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h") # > 2.3.3
if (EXISTS "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc-conf/petscvariables") # > 3.5
set (petsc_conf_rules "${PETSC_DIR}/lib/petsc-conf/rules")
set (petsc_conf_variables "${PETSC_DIR}/lib/petsc-conf/variables")
elseif (EXISTS "${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h") # > 2.3.3
set (petsc_conf_rules "${PETSC_DIR}/conf/rules")
set (petsc_conf_variables "${PETSC_DIR}/conf/variables")
elseif (EXISTS "${PETSC_DIR}/bmake/${PETSC_ARCH}/petscconf.h") # <= 2.3.3
Expand Down

0 comments on commit 732ce5f

Please sign in to comment.