view armadillo-3.900.4/build_aux/cmake/Modules/ARMA_FindBLAS.cmake @ 49:1ec0e2823891

Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author Chris Cannam
date Thu, 13 Jun 2013 10:25:24 +0100
parents
children
line wrap: on
line source
# - Find a BLAS library (no includes)
# This module defines
#  BLAS_LIBRARIES, the libraries needed to use BLAS.
#  BLAS_FOUND, If false, do not try to use BLAS.
# also defined, but not for general use are
#  BLAS_LIBRARY, where to find the BLAS library.

SET(BLAS_NAMES ${BLAS_NAMES} blas)
FIND_LIBRARY(BLAS_LIBRARY
  NAMES ${BLAS_NAMES}
  PATHS /usr/lib64/atlas /usr/lib/atlas /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
  )

IF (BLAS_LIBRARY)
  SET(BLAS_LIBRARIES ${BLAS_LIBRARY})
  SET(BLAS_FOUND "YES")
ELSE (BLAS_LIBRARY)
  SET(BLAS_FOUND "NO")
ENDIF (BLAS_LIBRARY)


IF (BLAS_FOUND)
   IF (NOT BLAS_FIND_QUIETLY)
      MESSAGE(STATUS "Found a BLAS library: ${BLAS_LIBRARIES}")
   ENDIF (NOT BLAS_FIND_QUIETLY)
ELSE (BLAS_FOUND)
   IF (BLAS_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find a BLAS library")
   ENDIF (BLAS_FIND_REQUIRED)
ENDIF (BLAS_FOUND)

# Deprecated declarations.
GET_FILENAME_COMPONENT (NATIVE_BLAS_LIB_PATH ${BLAS_LIBRARY} PATH)

MARK_AS_ADVANCED(
  BLAS_LIBRARY
  )