Lines 1-3
Link Here
|
|
|
1 |
# |
2 |
# Version modified for Gentoo Linux |
3 |
# If a valid PkgConfig configuration is found, this overrides and cancels |
4 |
# all further checks. |
5 |
# |
6 |
|
1 |
# - Find LAPACK library |
7 |
# - Find LAPACK library |
2 |
# This module finds an installed fortran library that implements the LAPACK |
8 |
# This module finds an installed fortran library that implements the LAPACK |
3 |
# linear-algebra interface (see http://www.netlib.org/lapack/). |
9 |
# linear-algebra interface (see http://www.netlib.org/lapack/). |
Lines 36-41
Link Here
|
36 |
# (To distribute this file outside of CMake, substitute the full |
42 |
# (To distribute this file outside of CMake, substitute the full |
37 |
# License text for the above reference.) |
43 |
# License text for the above reference.) |
38 |
|
44 |
|
|
|
45 |
# |
46 |
# first, try PkgConfig |
47 |
# |
48 |
find_package(PkgConfig REQUIRED) |
49 |
pkg_check_modules(LAPACK lapack) |
50 |
if(NOT LAPACK_FOUND) |
51 |
message(STATUS "No PkgConfig configuration for LAPACK found; starting more extensive search.") |
52 |
|
39 |
set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) |
53 |
set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) |
40 |
|
54 |
|
41 |
get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES) |
55 |
get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES) |
Lines 304-307
Link Here
|
304 |
endif(NOT LAPACK_FIND_QUIETLY) |
318 |
endif(NOT LAPACK_FIND_QUIETLY) |
305 |
endif(BLA_F95) |
319 |
endif(BLA_F95) |
306 |
|
320 |
|
|
|
321 |
endif(NOT LAPACK_FOUND) |
322 |
|
307 |
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES}) |
323 |
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES}) |