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 4 5 if (PASTIX_INCLUDES AND PASTIX_LIBRARIES) 6 set(PASTIX_FIND_QUIETLY TRUE) 7 endif (PASTIX_INCLUDES AND PASTIX_LIBRARIES) 8 9 find_path(PASTIX_INCLUDES 10 NAMES 11 pastix_nompi.h 12 PATHS 13 $ENV{PASTIXDIR} 14 ${INCLUDE_INSTALL_DIR} 15 ) 16 17 find_library(PASTIX_LIBRARIES pastix PATHS $ENV{PASTIXDIR} ${LIB_INSTALL_DIR}) 18 19 20 21 include(FindPackageHandleStandardArgs) 22 find_package_handle_standard_args(PASTIX DEFAULT_MSG 23 PASTIX_INCLUDES PASTIX_LIBRARIES) 24 25 mark_as_advanced(PASTIX_INCLUDES PASTIX_LIBRARIES) 26