Chris@49: # - Find the OpenBLAS library (no includes) Chris@49: # This module defines Chris@49: # OpenBLAS_LIBRARIES, the libraries needed to use OpenBLAS. Chris@49: # OpenBLAS_FOUND, If false, do not try to use OpenBLAS. Chris@49: # also defined, but not for general use are Chris@49: # OpenBLAS_LIBRARY, where to find the OpenBLAS library. Chris@49: Chris@49: SET(OpenBLAS_NAMES ${OpenBLAS_NAMES} openblas) Chris@49: FIND_LIBRARY(OpenBLAS_LIBRARY Chris@49: NAMES ${OpenBLAS_NAMES} Chris@49: PATHS /lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib Chris@49: ) Chris@49: Chris@49: IF (OpenBLAS_LIBRARY) Chris@49: SET(OpenBLAS_LIBRARIES ${OpenBLAS_LIBRARY}) Chris@49: SET(OpenBLAS_FOUND "YES") Chris@49: ELSE (OpenBLAS_LIBRARY) Chris@49: SET(OpenBLAS_FOUND "NO") Chris@49: ENDIF (OpenBLAS_LIBRARY) Chris@49: Chris@49: Chris@49: IF (OpenBLAS_FOUND) Chris@49: IF (NOT OpenBLAS_FIND_QUIETLY) Chris@49: MESSAGE(STATUS "Found the OpenBLAS library: ${OpenBLAS_LIBRARIES}") Chris@49: ENDIF (NOT OpenBLAS_FIND_QUIETLY) Chris@49: ELSE (OpenBLAS_FOUND) Chris@49: IF (OpenBLAS_FIND_REQUIRED) Chris@49: MESSAGE(FATAL_ERROR "Could not find the OpenBLAS library") Chris@49: ENDIF (OpenBLAS_FIND_REQUIRED) Chris@49: ENDIF (OpenBLAS_FOUND) Chris@49: Chris@49: # Deprecated declarations. Chris@49: GET_FILENAME_COMPONENT (NATIVE_OpenBLAS_LIB_PATH ${OpenBLAS_LIBRARY} PATH) Chris@49: Chris@49: MARK_AS_ADVANCED( Chris@49: OpenBLAS_LIBRARY Chris@49: )