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