From d04d0b4b6dd0bac81a56a0965d24a2535a9a5e3a Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 13 Nov 2010 18:30:44 +0000 Subject: [PATCH] Made the cmake file for finding blas more robust. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403899 --- dlib/cmake_find_blas.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlib/cmake_find_blas.txt b/dlib/cmake_find_blas.txt index 782851a68..737844a1a 100644 --- a/dlib/cmake_find_blas.txt +++ b/dlib/cmake_find_blas.txt @@ -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()