summaryrefslogtreecommitdiff
path: root/sci-libs/rocBLAS/files/rocBLAS-6.3.0-find-cblas.patch
blob: 4afb077895817f745d558ed651b02de6e301f145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt
index 4485fee..51eedc9 100644
--- a/clients/CMakeLists.txt
+++ b/clients/CMakeLists.txt
@@ -140,10 +140,12 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS)
         set( BLAS_LIBRARY /usr/local/lib/libblis.a )
         set( BLIS_INCLUDE_DIR /usr/local/include/blis )
       else()
-        message( WARNING "Could not find libblis" )
+        message( FATAL_ERROR "Could not find libblis" )
       endif()
     else()
-      set( BLAS_LIBRARY "blas -lcblas" )
+      find_package( CBLAS CONFIG REQUIRED )
+      set( BLAS_LIBRARY ${CBLAS_LIBRARIES} )
+      set( BLAS_INCLUDE_DIR ${CBLAS_INCLUDE_DIRS} )
     endif()
   else() # WIN32
     file(TO_CMAKE_PATH "C:/Program\ Files/AMD/AOCL-Windows/amd-blis/lib/ILP64/AOCL-LibBlis-Win-MT.lib" AOCL_BLAS_LIBRARY)