1 # Pastix requires SCOTCH or METIS (partitioning and reordering tools) 2 3 if (SCOTCH_INCLUDES AND SCOTCH_LIBRARIES) 4 set(SCOTCH_FIND_QUIETLY TRUE) 5 endif (SCOTCH_INCLUDES AND SCOTCH_LIBRARIES) 6 7 find_path(SCOTCH_INCLUDES 8 NAMES 9 scotch.h 10 PATHS 11 $ENV{SCOTCHDIR} 12 ${INCLUDE_INSTALL_DIR} 13 PATH_SUFFIXES 14 scotch 15 ) 16 17 18 find_library(SCOTCH_LIBRARIES scotch PATHS $ENV{SCOTCHDIR} ${LIB_INSTALL_DIR}) 19 20 include(FindPackageHandleStandardArgs) 21 find_package_handle_standard_args(SCOTCH DEFAULT_MSG 22 SCOTCH_INCLUDES SCOTCH_LIBRARIES) 23 24 mark_as_advanced(SCOTCH_INCLUDES SCOTCH_LIBRARIES) 25