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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 22 22:18:20 2011 UTC (2 years, 7 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/FindLAPACK.cmake cmake-2.8.5/Modules/FindLAPACK.cmake
2 --- cmake-2.8.5.orig/Modules/FindLAPACK.cmake 2011-07-08 14:21:44.000000000 +0200
3 +++ cmake-2.8.5/Modules/FindLAPACK.cmake 2011-07-17 19:46:57.865560858 +0200
4 @@ -1,3 +1,9 @@
5 +#
6 +# Version modified for Gentoo Linux
7 +# If a valid PkgConfig configuration is found, this overrides and cancels
8 +# all further checks.
9 +#
10 +
11 # - Find LAPACK library
12 # This module finds an installed fortran library that implements the LAPACK
13 # linear-algebra interface (see http://www.netlib.org/lapack/).
14 @@ -36,6 +42,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(LAPACK lapack)
23 +if(NOT LAPACK_FOUND)
24 +message(STATUS "No PkgConfig configuration for LAPACK found; starting more extensive search.")
25 +
26 get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES)
27 if (NOT _LANGUAGES_ MATCHES Fortran)
28 include(CheckFunctionExists)
29 @@ -300,3 +314,5 @@
30 endif(LAPACK_FOUND)
31 endif(NOT LAPACK_FIND_QUIETLY)
32 endif(BLA_F95)
33 +
34 +endif(NOT LAPACK_FOUND)

  ViewVC Help
Powered by ViewVC 1.1.20