File: FindPastix.cmake

package info (click to toggle)
amgcl 1.4.4-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 5,676 kB
  • sloc: cpp: 34,043; python: 747; pascal: 258; f90: 196; makefile: 20
file content (14 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Pastix lib requires linking to a blas library.
# It is up to the user of this module to find a BLAS and link to it.
# Pastix requires Scotch or Metis (partitioning and reordering tools) as well

if (NOT (Pastix_INCLUDES AND Pastix_LIBRARIES))
    find_path(Pastix_INCLUDES NAMES pastix.h PATHS $ENV{PASTIXDIR})
    find_library(Pastix_LIBRARIES pastix PATHS $ENV{PASTIXDIR})
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
    Pastix DEFAULT_MSG Pastix_INCLUDES Pastix_LIBRARIES)

mark_as_advanced(Pastix_INCLUDES Pastix_LIBRARIES)