From 52972a7380b269a2be126560a0fda87c021471b2 Mon Sep 17 00:00:00 2001 From: Davis King Date: Fri, 8 Dec 2017 09:07:49 -0500 Subject: [PATCH] Fixed incorrect printing of blas warning message. --- dlib/cmake_utils/cmake_find_blas.txt | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/dlib/cmake_utils/cmake_find_blas.txt b/dlib/cmake_utils/cmake_find_blas.txt index 188e24d1e..6cfb17ee1 100644 --- a/dlib/cmake_utils/cmake_find_blas.txt +++ b/dlib/cmake_utils/cmake_find_blas.txt @@ -254,18 +254,6 @@ if (UNIX OR MINGW) endif() - if (NOT blas_found) - message(" *****************************************************************************") - message(" *** No BLAS library found so using dlib's built in BLAS. However, if you ***") - message(" *** install an optimized BLAS such as OpenBLAS or the Intel MKL your code ***") - message(" *** will run faster. On Ubuntu you can install OpenBLAS by executing: ***") - message(" *** sudo apt-get install libopenblas-dev liblapack-dev ***") - message(" *** Or you can easily install OpenBLAS from source by downloading the ***") - message(" *** source tar file from http://www.openblas.net, extracting it, and ***") - message(" *** running: ***") - message(" *** make; sudo make install ***") - message(" *****************************************************************************") - endif() elseif(WIN32 AND NOT MINGW) message(STATUS "Searching for BLAS and LAPACK") @@ -367,3 +355,19 @@ if (lapack_found) endif () endif() + +if (UNIX OR MINGW) + if (NOT blas_found) + message(" *****************************************************************************") + message(" *** No BLAS library found so using dlib's built in BLAS. However, if you ***") + message(" *** install an optimized BLAS such as OpenBLAS or the Intel MKL your code ***") + message(" *** will run faster. On Ubuntu you can install OpenBLAS by executing: ***") + message(" *** sudo apt-get install libopenblas-dev liblapack-dev ***") + message(" *** Or you can easily install OpenBLAS from source by downloading the ***") + message(" *** source tar file from http://www.openblas.net, extracting it, and ***") + message(" *** running: ***") + message(" *** make; sudo make install ***") + message(" *****************************************************************************") + endif() +endif() +