mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Improved the way we look for available BLAS and LAPACK libraries.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403854
This commit is contained in:
parent
a022a17959
commit
c27bad2f77
@ -60,7 +60,7 @@ if (UNIX)
|
||||
# try to find some other LAPACK libraries if we didn't find the MKL
|
||||
|
||||
if (NOT lapack_found)
|
||||
find_library(lapack_lib lapack)
|
||||
find_library(lapack_lib NAMES lapack lapack-3)
|
||||
if (lapack_lib)
|
||||
set(lapack_libraries ${lapack_lib})
|
||||
set(lapack_found 1)
|
||||
@ -71,17 +71,6 @@ if (UNIX)
|
||||
|
||||
|
||||
# try to find some other BLAS libraries if we didn't find the MKL
|
||||
|
||||
if (NOT blas_found)
|
||||
find_library(cblas_lib cblas)
|
||||
if (cblas_lib)
|
||||
set(blas_libraries ${cblas_lib})
|
||||
set(blas_found 1)
|
||||
message(STATUS "Found CBLAS library")
|
||||
endif()
|
||||
mark_as_advanced( cblas_lib)
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT blas_found)
|
||||
find_library(atlas_lib atlas)
|
||||
@ -93,6 +82,17 @@ if (UNIX)
|
||||
mark_as_advanced( atlas_lib)
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT blas_found)
|
||||
find_library(cblas_lib cblas)
|
||||
if (cblas_lib)
|
||||
set(blas_libraries ${cblas_lib})
|
||||
set(blas_found 1)
|
||||
message(STATUS "Found CBLAS library")
|
||||
endif()
|
||||
mark_as_advanced( cblas_lib)
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT blas_found)
|
||||
find_library(generic_blas blas)
|
||||
|
Loading…
Reference in New Issue
Block a user