annotate armadillo-2.4.4/build_aux/cmake/Modules/ARMA_FindLAPACK.cmake @ 14:8aa828dd7d9f
slimline
Rename method Segmenter to runSegmenter to avoid looking like a class name
author |
Chris Cannam |
date |
Thu, 10 May 2012 10:21:07 +0100 |
parents |
8b6102e2a9b0 |
children |
|
rev |
line source |
max@0
|
1 # - Find a LAPACK library (no includes)
|
max@0
|
2 # This module defines
|
max@0
|
3 # LAPACK_LIBRARIES, the libraries needed to use LAPACK.
|
max@0
|
4 # LAPACK_FOUND, If false, do not try to use LAPACK.
|
max@0
|
5 # also defined, but not for general use are
|
max@0
|
6 # LAPACK_LIBRARY, where to find the LAPACK library.
|
max@0
|
7
|
max@0
|
8 SET(LAPACK_NAMES ${LAPACK_NAMES} lapack)
|
max@0
|
9 FIND_LIBRARY(LAPACK_LIBRARY
|
max@0
|
10 NAMES ${LAPACK_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 (LAPACK_LIBRARY)
|
max@0
|
15 SET(LAPACK_LIBRARIES ${LAPACK_LIBRARY})
|
max@0
|
16 SET(LAPACK_FOUND "YES")
|
max@0
|
17 ELSE (LAPACK_LIBRARY)
|
max@0
|
18 SET(LAPACK_FOUND "NO")
|
max@0
|
19 ENDIF (LAPACK_LIBRARY)
|
max@0
|
20
|
max@0
|
21
|
max@0
|
22 IF (LAPACK_FOUND)
|
max@0
|
23 IF (NOT LAPACK_FIND_QUIETLY)
|
max@0
|
24 MESSAGE(STATUS "Found a LAPACK library: ${LAPACK_LIBRARIES}")
|
max@0
|
25 ENDIF (NOT LAPACK_FIND_QUIETLY)
|
max@0
|
26 ELSE (LAPACK_FOUND)
|
max@0
|
27 IF (LAPACK_FIND_REQUIRED)
|
max@0
|
28 MESSAGE(FATAL_ERROR "Could not find a LAPACK library")
|
max@0
|
29 ENDIF (LAPACK_FIND_REQUIRED)
|
max@0
|
30 ENDIF (LAPACK_FOUND)
|
max@0
|
31
|
max@0
|
32 # Deprecated declarations.
|
max@0
|
33 GET_FILENAME_COMPONENT (NATIVE_LAPACK_LIB_PATH ${LAPACK_LIBRARY} PATH)
|
max@0
|
34
|
max@0
|
35 MARK_AS_ADVANCED(
|
max@0
|
36 LAPACK_LIBRARY
|
max@0
|
37 )
|