1 |
dilfridge 11/11/22 22:15:19 |
2 |
|
3 |
Added: cmake-2.8.6-FindBLAS-2.patch |
4 |
Log: |
5 |
Fix logic bug in FindBLAS patch |
6 |
|
7 |
(Portage version: 2.1.10.36/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-util/cmake/files/cmake-2.8.6-FindBLAS-2.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.6-FindBLAS-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-FindBLAS-2.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: cmake-2.8.6-FindBLAS-2.patch |
16 |
=================================================================== |
17 |
diff -ruN cmake-2.8.6.orig/Modules/FindBLAS.cmake cmake-2.8.6/Modules/FindBLAS.cmake |
18 |
--- cmake-2.8.6.orig/Modules/FindBLAS.cmake 2011-10-04 18:09:24.000000000 +0200 |
19 |
+++ cmake-2.8.6/Modules/FindBLAS.cmake 2011-11-22 23:04:17.000000000 +0100 |
20 |
@@ -1,3 +1,9 @@ |
21 |
+# |
22 |
+# Version modified for Gentoo Linux |
23 |
+# If a valid PkgConfig configuration for blas is found, this overrides and cancels |
24 |
+# all further checks. |
25 |
+# |
26 |
+ |
27 |
# - Find BLAS library |
28 |
# This module finds an installed fortran library that implements the BLAS |
29 |
# linear-algebra interface (see http://www.netlib.org/blas/). |
30 |
@@ -39,6 +45,14 @@ |
31 |
# (To distribute this file outside of CMake, substitute the full |
32 |
# License text for the above reference.) |
33 |
|
34 |
+# |
35 |
+# first, try PkgConfig |
36 |
+# |
37 |
+find_package(PkgConfig REQUIRED) |
38 |
+pkg_check_modules(BLAS blas) |
39 |
+if(NOT BLAS_FOUND) |
40 |
+message(STATUS "No PkgConfig configuration for BLAS found; starting more extensive search.") |
41 |
+ |
42 |
include(CheckFunctionExists) |
43 |
include(CheckFortranFunctionExists) |
44 |
|
45 |
@@ -622,3 +636,6 @@ |
46 |
endif(BLA_F95) |
47 |
|
48 |
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES}) |
49 |
+ |
50 |
+endif(NOT BLAS_FOUND) |
51 |
+ |