Debian Codegraph @

cmake_aux/Modules/ARMA_FindARPACK.cmake

raw
1 # - Try to find ARPACK
2 # Once done this will define
3 #
4 # ARPACK_FOUND - system has ARPACK
5 # ARPACK_LIBRARY - Link this to use ARPACK
6
7
8 find_library(ARPACK_LIBRARY
9 NAMES arpack
10 PATHS ${CMAKE_SYSTEM_LIBRARY_PATH} /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /opt/local/lib64 /opt/local/lib
11 )
12
13
14 IF (ARPACK_LIBRARY)
15 SET(ARPACK_FOUND YES)
16 ELSE ()
17 SET(ARPACK_FOUND NO)
18 ENDIF ()
19
20
21 IF (ARPACK_FOUND)
22 IF (NOT ARPACK_FIND_QUIETLY)
23 MESSAGE(STATUS "Found ARPACK: ${ARPACK_LIBRARY}")
24 ENDIF (NOT ARPACK_FIND_QUIETLY)
25 ELSE (ARPACK_FOUND)
26 IF (ARPACK_FIND_REQUIRED)
27 MESSAGE(FATAL_ERROR "Could not find ARPACK")
28 ENDIF (ARPACK_FIND_REQUIRED)
29 ENDIF (ARPACK_FOUND)