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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 8 23:35:54 2012 UTC (21 months, 1 week 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 --- cmake-2.8.6.orig/Modules/FindLAPACK.cmake 2011-10-09 23:38:48.956933106 +0800
2 +++ cmake-2.8.6.orig/Modules/FindLAPACK.cmake 2011-10-09 23:39:52.002144646 +0800
3 @@ -1,3 +1,9 @@
4 +#
5 +# Version modified for Gentoo Linux
6 +# If a valid PkgConfig configuration is found, this overrides and cancels
7 +# all further checks.
8 +#
9 +
10 # - Find LAPACK library
11 # This module finds an installed fortran library that implements the LAPACK
12 # linear-algebra interface (see http://www.netlib.org/lapack/).
13 @@ -36,6 +42,14 @@
14 # (To distribute this file outside of CMake, substitute the full
15 # License text for the above reference.)
16
17 +#
18 +# first, try PkgConfig
19 +#
20 +find_package(PkgConfig REQUIRED)
21 +pkg_check_modules(LAPACK lapack)
22 +if(NOT LAPACK_FOUND)
23 +message(STATUS "No PkgConfig configuration for LAPACK found; starting more extensive search.")
24 +
25 set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
26
27 get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES)
28 @@ -304,4 +318,6 @@
29 endif(NOT LAPACK_FIND_QUIETLY)
30 endif(BLA_F95)
31
32 set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
33 +
34 +endif(NOT LAPACK_FOUND)

  ViewVC Help
Powered by ViewVC 1.1.20