Made the cmake file for finding blas more robust.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403899
This commit is contained in:
Davis King 2010-11-13 18:30:44 +00:00
parent 6de61008c7
commit d04d0b4b6d
1 changed files with 4 additions and 3 deletions

View File

@ -79,12 +79,13 @@ if (UNIX)
if (NOT blas_found)
find_library(atlas_lib atlas)
if (atlas_lib)
set(blas_libraries ${atlas_lib})
find_library(cblas_lib cblas)
if (atlas_lib AND cblas_lib)
set(blas_libraries ${atlas_lib} ${cblas_lib})
set(blas_found 1)
message(STATUS "Found ATLAS BLAS library")
endif()
mark_as_advanced( atlas_lib)
mark_as_advanced( atlas_lib cblas_lib)
endif()