1 |
dilfridge 11/10/29 21:49:29 |
2 |
|
3 |
Added: cmake-2.8.6-FindLAPACK-2.patch |
4 |
Log: |
5 |
Fix FindLAPACK, bug 388757 |
6 |
|
7 |
(Portage version: 2.1.10.31/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-util/cmake/files/cmake-2.8.6-FindLAPACK-2.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.6-FindLAPACK-2.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.6-FindLAPACK-2.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: cmake-2.8.6-FindLAPACK-2.patch |
16 |
=================================================================== |
17 |
--- cmake-2.8.6.orig/Modules/FindLAPACK.cmake 2011-10-09 23:38:48.956933106 +0800 |
18 |
+++ cmake-2.8.6.orig/Modules/FindLAPACK.cmake 2011-10-09 23:39:52.002144646 +0800 |
19 |
@@ -1,3 +1,9 @@ |
20 |
+# |
21 |
+# Version modified for Gentoo Linux |
22 |
+# If a valid PkgConfig configuration is found, this overrides and cancels |
23 |
+# all further checks. |
24 |
+# |
25 |
+ |
26 |
# - Find LAPACK library |
27 |
# This module finds an installed fortran library that implements the LAPACK |
28 |
# linear-algebra interface (see http://www.netlib.org/lapack/). |
29 |
@@ -36,6 +42,14 @@ |
30 |
# (To distribute this file outside of CMake, substitute the full |
31 |
# License text for the above reference.) |
32 |
|
33 |
+# |
34 |
+# first, try PkgConfig |
35 |
+# |
36 |
+find_package(PkgConfig REQUIRED) |
37 |
+pkg_check_modules(LAPACK lapack) |
38 |
+if(NOT LAPACK_FOUND) |
39 |
+message(STATUS "No PkgConfig configuration for LAPACK found; starting more extensive search.") |
40 |
+ |
41 |
set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) |
42 |
|
43 |
get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES) |
44 |
@@ -304,4 +318,6 @@ |
45 |
endif(NOT LAPACK_FIND_QUIETLY) |
46 |
endif(BLA_F95) |
47 |
|
48 |
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES}) |
49 |
+ |
50 |
+endif(NOT LAPACK_FOUND) |