summaryrefslogtreecommitdiff
path: root/sci-libs/clblas/files/clblas-2.12-Detect-CBLAS-when-building-the-client.patch
blob: bfe94dfd7074cd1ee727220b22c9af56c669ffb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Sat, 21 Jan 2017 16:49:27 +0000
Subject: Detect CBLAS when building the client

---
 src/CMakeLists.txt | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bf351c1..28d6a60 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -267,10 +267,7 @@ if( BUILD_TEST )
 endif( )
 
 if( BUILD_CLIENT )
-    if( NETLIB_FOUND )
-    else( )
-        message( WARNING "Not find Netlib; BUILD_CLIENT needs the Netlib CBLAS library" )
-    endif()
+    find_package( Netlib COMPONENTS BLAS REQUIRED )
 endif()