Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 399755 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/share/cmake/Modules/FindBLAS.cmake (-3 / +13 lines)
Lines 49-56 Link Here
49
# first, try PkgConfig
49
# first, try PkgConfig
50
#
50
#
51
find_package(PkgConfig REQUIRED)
51
find_package(PkgConfig REQUIRED)
52
pkg_check_modules(BLAS blas)
52
pkg_check_modules(PC_BLAS blas)
53
if(NOT BLAS_FOUND)
53
if(PC_BLAS_FOUND)
54
  foreach(PC_LIB ${PC_BLAS_LIBRARIES})
55
    find_library(${PC_LIB}_LIBRARY NAMES ${PC_LIB} HINTS ${PC_BLAS_LIBRARY_DIRS} )
56
    if (NOT ${PC_LIB}_LIBRARY)
57
      message(FATAL_ERROR "Something is wrong in your pkg-config file - lib ${PC_LIB} not found in ${PC_BLAS_LIBRARY_DIRS}")
58
    endif (NOT ${PC_LIB}_LIBRARY)
59
    list(APPEND BLAS_LIBRARIES ${${PC_LIB}_LIBRARY}) 
60
  endforeach(PC_LIB)
61
  find_package_handle_standard_args(BLAS DEFAULT_MSG BLAS_LIBRARIES)
62
  mark_as_advanced(BLAS_LIBRARIES)
63
else(PC_BLAS_FOUND)
54
message(STATUS "No PkgConfig configuration for BLAS found; starting more extensive search.")
64
message(STATUS "No PkgConfig configuration for BLAS found; starting more extensive search.")
55
65
56
include(CheckFunctionExists)
66
include(CheckFunctionExists)
Lines 637-641 Link Here
637
647
638
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
648
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
639
649
640
endif(NOT BLAS_FOUND)
650
endif(PC_BLAS_FOUND)
641
651

Return to bug 399755