max@0: # - Find a BLAS library (no includes) max@0: # This module defines max@0: # BLAS_LIBRARIES, the libraries needed to use BLAS. max@0: # BLAS_FOUND, If false, do not try to use BLAS. max@0: # also defined, but not for general use are max@0: # BLAS_LIBRARY, where to find the BLAS library. max@0: max@0: SET(BLAS_NAMES ${BLAS_NAMES} blas) max@0: FIND_LIBRARY(BLAS_LIBRARY max@0: NAMES ${BLAS_NAMES} max@0: PATHS /usr/lib64/atlas /usr/lib/atlas /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib max@0: ) max@0: max@0: IF (BLAS_LIBRARY) max@0: SET(BLAS_LIBRARIES ${BLAS_LIBRARY}) max@0: SET(BLAS_FOUND "YES") max@0: ELSE (BLAS_LIBRARY) max@0: SET(BLAS_FOUND "NO") max@0: ENDIF (BLAS_LIBRARY) max@0: max@0: max@0: IF (BLAS_FOUND) max@0: IF (NOT BLAS_FIND_QUIETLY) max@0: MESSAGE(STATUS "Found a BLAS library: ${BLAS_LIBRARIES}") max@0: ENDIF (NOT BLAS_FIND_QUIETLY) max@0: ELSE (BLAS_FOUND) max@0: IF (BLAS_FIND_REQUIRED) max@0: MESSAGE(FATAL_ERROR "Could not find a BLAS library") max@0: ENDIF (BLAS_FIND_REQUIRED) max@0: ENDIF (BLAS_FOUND) max@0: max@0: # Deprecated declarations. max@0: GET_FILENAME_COMPONENT (NATIVE_BLAS_LIB_PATH ${BLAS_LIBRARY} PATH) max@0: max@0: MARK_AS_ADVANCED( max@0: BLAS_LIBRARY max@0: )