Skip to content

Commit

Permalink
Merge branch 'patch-1' of github:ptooley/cmake-modules [PR #24]
Browse files Browse the repository at this point in the history
* 'patch-1' of github:ptooley/cmake-modules:
  Future proof debian paths
  Add more general search path for PETSc
  • Loading branch information
jedbrown committed Mar 5, 2018
2 parents c12baa0 + 28012f8 commit 353ccd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions FindPETSc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ function (petsc_get_version)
endif ()
endfunction ()

# Debian uses versioned paths e.g /usr/lib/petscdir/3.5/
file (GLOB DEB_PATHS "/usr/lib/petscdir/*")

find_path (PETSC_DIR include/petsc.h
HINTS ENV PETSC_DIR
PATHS
# Debian paths
/usr/lib/petsc
/usr/lib/petscdir/3.5.1 /usr/lib/petscdir/3.5
/usr/lib/petscdir/3.4.2 /usr/lib/petscdir/3.4
/usr/lib/petscdir/3.3 /usr/lib/petscdir/3.2 /usr/lib/petscdir/3.1
/usr/lib/petscdir/3.0.0 /usr/lib/petscdir/2.3.3 /usr/lib/petscdir/2.3.2
# Debian paths
${DEB_PATHS}
# MacPorts path
/opt/local/lib/petsc
$ENV{HOME}/petsc
Expand Down

0 comments on commit 353ccd4

Please sign in to comment.