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

Contents of /dev-util/cmake/files/cmake-2.8.5-FindBLAS.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 22 22:18:20 2011 UTC (3 years, 8 months ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Cleanup

(Portage version: 2.1.10.36/cvs/Linux x86_64)

1 diff -ruN cmake-2.8.5.orig/Modules/FindBLAS.cmake cmake-2.8.5/Modules/FindBLAS.cmake
2 --- cmake-2.8.5.orig/Modules/FindBLAS.cmake 2011-07-08 14:21:44.000000000 +0200
3 +++ cmake-2.8.5/Modules/FindBLAS.cmake 2011-07-17 17:34:45.384557963 +0200
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 @@ -559,3 +573,6 @@
30 endif(BLAS_FOUND)
31 endif(NOT BLAS_FIND_QUIETLY)
32 endif(BLA_F95)
33 +
34 +
35 +endif(NOT BLAS_FOUND)

  ViewVC Help
Powered by ViewVC 1.1.20