annotate armadillo-2.4.4/build_aux/cmake/Modules/ARMA_FindBLAS.cmake @ 0:8b6102e2a9b0

Armadillo Library
author maxzanoni76 <max.zanoni@eecs.qmul.ac.uk>
date Wed, 11 Apr 2012 09:27:06 +0100
parents
children
rev   line source
max@0 1 # - Find a BLAS library (no includes)
max@0 2 # This module defines
max@0 3 # BLAS_LIBRARIES, the libraries needed to use BLAS.
max@0 4 # BLAS_FOUND, If false, do not try to use BLAS.
max@0 5 # also defined, but not for general use are
max@0 6 # BLAS_LIBRARY, where to find the BLAS library.
max@0 7
max@0 8 SET(BLAS_NAMES ${BLAS_NAMES} blas)
max@0 9 FIND_LIBRARY(BLAS_LIBRARY
max@0 10 NAMES ${BLAS_NAMES}
max@0 11 PATHS /usr/lib64/atlas /usr/lib/atlas /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
max@0 12 )
max@0 13
max@0 14 IF (BLAS_LIBRARY)
max@0 15 SET(BLAS_LIBRARIES ${BLAS_LIBRARY})
max@0 16 SET(BLAS_FOUND "YES")
max@0 17 ELSE (BLAS_LIBRARY)
max@0 18 SET(BLAS_FOUND "NO")
max@0 19 ENDIF (BLAS_LIBRARY)
max@0 20
max@0 21
max@0 22 IF (BLAS_FOUND)
max@0 23 IF (NOT BLAS_FIND_QUIETLY)
max@0 24 MESSAGE(STATUS "Found a BLAS library: ${BLAS_LIBRARIES}")
max@0 25 ENDIF (NOT BLAS_FIND_QUIETLY)
max@0 26 ELSE (BLAS_FOUND)
max@0 27 IF (BLAS_FIND_REQUIRED)
max@0 28 MESSAGE(FATAL_ERROR "Could not find a BLAS library")
max@0 29 ENDIF (BLAS_FIND_REQUIRED)
max@0 30 ENDIF (BLAS_FOUND)
max@0 31
max@0 32 # Deprecated declarations.
max@0 33 GET_FILENAME_COMPONENT (NATIVE_BLAS_LIB_PATH ${BLAS_LIBRARY} PATH)
max@0 34
max@0 35 MARK_AS_ADVANCED(
max@0 36 BLAS_LIBRARY
max@0 37 )