Updated the BLAS cmake file so that it works on more platforms.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403286
This commit is contained in:
Davis King 2009-12-03 04:02:39 +00:00
parent e97df82bd4
commit 899a3c63e3
1 changed files with 11 additions and 0 deletions

View File

@ -55,6 +55,17 @@ if (UNIX)
# try to find some other BLAS libraries if we didn't find the MKL # 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) if (NOT blas_found)
find_library(atlas_lib atlas) find_library(atlas_lib atlas)
if (atlas_lib) if (atlas_lib)