From 899a3c63e30c05e86d26263130c9610c5b90e64e Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 3 Dec 2009 04:02:39 +0000 Subject: [PATCH] Updated the BLAS cmake file so that it works on more platforms. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403286 --- dlib/cmake_find_blas.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dlib/cmake_find_blas.txt b/dlib/cmake_find_blas.txt index 048b7b26a..1476f3973 100644 --- a/dlib/cmake_find_blas.txt +++ b/dlib/cmake_find_blas.txt @@ -54,6 +54,17 @@ 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)