Chris@49: # - Find AMD's ACML library (no includes) which provides optimised BLAS and LAPACK functions Chris@49: # This module defines Chris@49: # ACML_LIBRARIES, the libraries needed to use ACML. Chris@49: # ACML_FOUND, If false, do not try to use ACML. Chris@49: # also defined, but not for general use are Chris@49: # ACML_LIBRARY, where to find the ACML library. Chris@49: Chris@49: SET(ACML_NAMES ${ACML_NAMES} acml) Chris@49: FIND_LIBRARY(ACML_LIBRARY Chris@49: NAMES ${ACML_NAMES} Chris@49: PATHS /usr/lib64 /usr/lib /usr/*/lib64 /usr/*/lib /usr/*/gfortran64/lib/ /usr/*/gfortran32/lib/ /usr/local/lib64 /usr/local/lib /opt/lib64 /opt/lib /opt/*/lib64 /opt/*/lib /opt/*/gfortran64/lib/ /opt/*/gfortran32/lib/ Chris@49: ) Chris@49: Chris@49: IF (ACML_LIBRARY) Chris@49: SET(ACML_LIBRARIES ${ACML_LIBRARY}) Chris@49: SET(ACML_FOUND "YES") Chris@49: ELSE (ACML_LIBRARY) Chris@49: SET(ACML_FOUND "NO") Chris@49: ENDIF (ACML_LIBRARY) Chris@49: Chris@49: Chris@49: IF (ACML_FOUND) Chris@49: IF (NOT ACML_FIND_QUIETLY) Chris@49: MESSAGE(STATUS "Found the ACML library: ${ACML_LIBRARIES}") Chris@49: ENDIF (NOT ACML_FIND_QUIETLY) Chris@49: ELSE (ACML_FOUND) Chris@49: IF (ACML_FIND_REQUIRED) Chris@49: MESSAGE(FATAL_ERROR "Could not find the ACML library") Chris@49: ENDIF (ACML_FIND_REQUIRED) Chris@49: ENDIF (ACML_FOUND) Chris@49: Chris@49: # Deprecated declarations. Chris@49: GET_FILENAME_COMPONENT (NATIVE_ACML_LIB_PATH ${ACML_LIBRARY} PATH) Chris@49: Chris@49: MARK_AS_ADVANCED( Chris@49: ACML_LIBRARY Chris@49: )