Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 300201 Details for
Bug 399755
dev-util/cmake: pkg-config library path not respected by cmake in Find_{BLAS,LAPACK}.cmake
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
obey pkg-config libdir in FindBLAS.camke
FindBLAS.cmake.patch (text/plain), 1.08 KB, created by
Christoph Junghans (RETIRED)
on 2012-01-28 20:36:08 UTC
(
hide
)
Description:
obey pkg-config libdir in FindBLAS.camke
Filename:
MIME Type:
Creator:
Christoph Junghans (RETIRED)
Created:
2012-01-28 20:36:08 UTC
Size:
1.08 KB
patch
obsolete
>--- /usr/share/cmake/Modules/FindBLAS.cmake 2011-11-23 21:59:33.000000000 -0700 >+++ FindBLAS.cmake 2012-01-28 13:31:00.000000000 -0700 >@@ -49,8 +49,18 @@ > # first, try PkgConfig > # > find_package(PkgConfig REQUIRED) >-pkg_check_modules(BLAS blas) >-if(NOT BLAS_FOUND) >+pkg_check_modules(PC_BLAS blas) >+if(PC_BLAS_FOUND) >+ foreach(PC_LIB ${PC_BLAS_LIBRARIES}) >+ find_library(${PC_LIB}_LIBRARY NAMES ${PC_LIB} HINTS ${PC_BLAS_LIBRARY_DIRS} ) >+ if (NOT ${PC_LIB}_LIBRARY) >+ message(FATAL_ERROR "Something is wrong in your pkg-config file - lib ${PC_LIB} not found in ${PC_BLAS_LIBRARY_DIRS}") >+ endif (NOT ${PC_LIB}_LIBRARY) >+ list(APPEND BLAS_LIBRARIES ${${PC_LIB}_LIBRARY}) >+ endforeach(PC_LIB) >+ find_package_handle_standard_args(BLAS DEFAULT_MSG BLAS_LIBRARIES) >+ mark_as_advanced(BLAS_LIBRARIES) >+else(PC_BLAS_FOUND) > message(STATUS "No PkgConfig configuration for BLAS found; starting more extensive search.") > > include(CheckFunctionExists) >@@ -637,5 +647,5 @@ > > set(CMAKE_FIND_LIBRARY_SUFFIXES ${_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES}) > >-endif(NOT BLAS_FOUND) >+endif(PC_BLAS_FOUND) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 399755
:
299563
| 300201 |
304653