/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.6-FindBLAS-2.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.6-FindBLAS-2.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 8 23:35:54 2012 UTC (2 years ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

1 diff -ruN cmake-2.8.6.orig/Modules/FindBLAS.cmake cmake-2.8.6/Modules/FindBLAS.cmake
2 --- cmake-2.8.6.orig/Modules/FindBLAS.cmake 2011-10-04 18:09:24.000000000 +0200
3 +++ cmake-2.8.6/Modules/FindBLAS.cmake 2011-11-22 23:04:17.000000000 +0100
4 @@ -1,3 +1,9 @@
5 +#
6 +# Version modified for Gentoo Linux
7 +# If a valid PkgConfig configuration for blas is found, this overrides and cancels
8 +# all further checks.
9 +#
10 +
11 # - Find BLAS library
12 # This module finds an installed fortran library that implements the BLAS
13 # linear-algebra interface (see http://www.netlib.org/blas/).
14 @@ -39,6 +45,14 @@
15 # (To distribute this file outside of CMake, substitute the full
16 # License text for the above reference.)
17
18 +#
19 +# first, try PkgConfig
20 +#
21 +find_package(PkgConfig REQUIRED)
22 +pkg_check_modules(BLAS blas)
23 +if(NOT BLAS_FOUND)
24 +message(STATUS "No PkgConfig configuration for BLAS found; starting more extensive search.")
25 +
26 include(CheckFunctionExists)
27 include(CheckFortranFunctionExists)
28
29 @@ -622,3 +636,6 @@
30 endif(BLA_F95)
31
32 set(CMAKE_FIND_LIBRARY_SUFFIXES ${_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
33 +
34 +endif(NOT BLAS_FOUND)
35 +

  ViewVC Help
Powered by ViewVC 1.1.20