Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / cmake / FindPastix.cmake
blobe2e6c810d3cf985eb5faca6d87768e42a81e89ea
1 # Pastix lib requires linking to a blas library.
2 # It is up to the user of this module to find a BLAS and link to it.
3 # Pastix requires SCOTCH or METIS (partitioning and reordering tools) as well
5 if (PASTIX_INCLUDES AND PASTIX_LIBRARIES)
6   set(PASTIX_FIND_QUIETLY TRUE)
7 endif (PASTIX_INCLUDES AND PASTIX_LIBRARIES)
9 find_path(PASTIX_INCLUDES
10   NAMES
11   pastix_nompi.h
12   PATHS
13   $ENV{PASTIXDIR}
14   ${INCLUDE_INSTALL_DIR}
17 find_library(PASTIX_LIBRARIES pastix PATHS $ENV{PASTIXDIR} ${LIB_INSTALL_DIR})
21 include(FindPackageHandleStandardArgs)
22 find_package_handle_standard_args(PASTIX DEFAULT_MSG
23                                   PASTIX_INCLUDES PASTIX_LIBRARIES)
25 mark_as_advanced(PASTIX_INCLUDES PASTIX_LIBRARIES)