max@0: # - Find a LAPACK library (no includes) max@0: # This module defines max@0: # LAPACK_LIBRARIES, the libraries needed to use LAPACK. max@0: # LAPACK_FOUND, If false, do not try to use LAPACK. max@0: # also defined, but not for general use are max@0: # LAPACK_LIBRARY, where to find the LAPACK library. max@0: max@0: SET(LAPACK_NAMES ${LAPACK_NAMES} lapack) max@0: FIND_LIBRARY(LAPACK_LIBRARY max@0: NAMES ${LAPACK_NAMES} max@0: PATHS /usr/lib64/atlas /usr/lib/atlas /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib max@0: ) max@0: max@0: IF (LAPACK_LIBRARY) max@0: SET(LAPACK_LIBRARIES ${LAPACK_LIBRARY}) max@0: SET(LAPACK_FOUND "YES") max@0: ELSE (LAPACK_LIBRARY) max@0: SET(LAPACK_FOUND "NO") max@0: ENDIF (LAPACK_LIBRARY) max@0: max@0: max@0: IF (LAPACK_FOUND) max@0: IF (NOT LAPACK_FIND_QUIETLY) max@0: MESSAGE(STATUS "Found a LAPACK library: ${LAPACK_LIBRARIES}") max@0: ENDIF (NOT LAPACK_FIND_QUIETLY) max@0: ELSE (LAPACK_FOUND) max@0: IF (LAPACK_FIND_REQUIRED) max@0: MESSAGE(FATAL_ERROR "Could not find a LAPACK library") max@0: ENDIF (LAPACK_FIND_REQUIRED) max@0: ENDIF (LAPACK_FOUND) max@0: max@0: # Deprecated declarations. max@0: GET_FILENAME_COMPONENT (NATIVE_LAPACK_LIB_PATH ${LAPACK_LIBRARY} PATH) max@0: max@0: MARK_AS_ADVANCED( max@0: LAPACK_LIBRARY max@0: )