Mercurial > hg > segmenter-vamp-plugin
annotate armadillo-3.900.4/build_aux/cmake/Modules/ARMA_FindCBLAS.cmake @ 84:55a047986812 tip
Update library URI so as not to be document-local
author | Chris Cannam |
---|---|
date | Wed, 22 Apr 2020 14:21:57 +0100 |
parents | 1ec0e2823891 |
children |
rev | line source |
---|---|
Chris@49 | 1 # - Find CBLAS (includes and library) |
Chris@49 | 2 # This module defines |
Chris@49 | 3 # CBLAS_INCLUDE_DIR |
Chris@49 | 4 # CBLAS_LIBRARIES |
Chris@49 | 5 # CBLAS_FOUND |
Chris@49 | 6 # also defined, but not for general use are |
Chris@49 | 7 # CBLAS_LIBRARY, where to find the library. |
Chris@49 | 8 |
Chris@49 | 9 FIND_PATH(CBLAS_INCLUDE_DIR cblas.h |
Chris@49 | 10 /usr/include/atlas/ |
Chris@49 | 11 /usr/local/include/atlas/ |
Chris@49 | 12 /usr/include/ |
Chris@49 | 13 /usr/local/include/ |
Chris@49 | 14 ) |
Chris@49 | 15 |
Chris@49 | 16 SET(CBLAS_NAMES ${CBLAS_NAMES} cblas) |
Chris@49 | 17 FIND_LIBRARY(CBLAS_LIBRARY |
Chris@49 | 18 NAMES ${CBLAS_NAMES} |
Chris@49 | 19 PATHS /usr/lib64/atlas-sse3 /usr/lib64/atlas /usr/lib64 /usr/local/lib64/atlas /usr/local/lib64 /usr/lib/atlas-sse3 /usr/lib/atlas-sse2 /usr/lib/atlas-sse /usr/lib/atlas-3dnow /usr/lib/atlas /usr/lib /usr/local/lib/atlas /usr/local/lib |
Chris@49 | 20 ) |
Chris@49 | 21 |
Chris@49 | 22 IF (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR) |
Chris@49 | 23 SET(CBLAS_LIBRARIES ${CBLAS_LIBRARY}) |
Chris@49 | 24 SET(CBLAS_FOUND "YES") |
Chris@49 | 25 ELSE (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR) |
Chris@49 | 26 SET(CBLAS_FOUND "NO") |
Chris@49 | 27 ENDIF (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR) |
Chris@49 | 28 |
Chris@49 | 29 |
Chris@49 | 30 IF (CBLAS_FOUND) |
Chris@49 | 31 IF (NOT CBLAS_FIND_QUIETLY) |
Chris@49 | 32 MESSAGE(STATUS "Found a CBLAS library: ${CBLAS_LIBRARIES}") |
Chris@49 | 33 ENDIF (NOT CBLAS_FIND_QUIETLY) |
Chris@49 | 34 ELSE (CBLAS_FOUND) |
Chris@49 | 35 IF (CBLAS_FIND_REQUIRED) |
Chris@49 | 36 MESSAGE(FATAL_ERROR "Could not find a CBLAS library") |
Chris@49 | 37 ENDIF (CBLAS_FIND_REQUIRED) |
Chris@49 | 38 ENDIF (CBLAS_FOUND) |
Chris@49 | 39 |
Chris@49 | 40 # Deprecated declarations. |
Chris@49 | 41 SET (NATIVE_CBLAS_INCLUDE_PATH ${CBLAS_INCLUDE_DIR} ) |
Chris@49 | 42 GET_FILENAME_COMPONENT (NATIVE_CBLAS_LIB_PATH ${CBLAS_LIBRARY} PATH) |
Chris@49 | 43 |
Chris@49 | 44 MARK_AS_ADVANCED( |
Chris@49 | 45 CBLAS_LIBRARY |
Chris@49 | 46 CBLAS_INCLUDE_DIR |
Chris@49 | 47 ) |