File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ if (BLAS_FOUND)
54
54
endif ()
55
55
if (DepBLAS_FOUND )
56
56
set (BLAS_INCLUDE_DIRS ${DepBLAS_INCLUDE_DIRS} )
57
+ set (BLAS_LDFLAGS ${DepBLAS_LDFLAGS} )
57
58
else ()
58
59
message (WARNING "BLAS_INCLUDE_DIRS neither been provided nor been automatically"
59
60
" detected by pkgconfig, trying to find cblas.h from possible paths..." )
@@ -73,6 +74,7 @@ if (BLAS_FOUND)
73
74
message (STATUS "BLAS found, Includes: ${BLAS_INCLUDE_DIRS} " )
74
75
75
76
target_compile_options (ggml-blas PRIVATE ${BLAS_LINKER_FLAGS} )
77
+ target_link_options (ggml-blas PRIVATE ${BLAS_LDFLAGS} )
76
78
77
79
if (${BLAS_INCLUDE_DIRS} MATCHES "mkl" AND (${GGML_BLAS_VENDOR} MATCHES "Generic" OR ${GGML_BLAS_VENDOR} MATCHES "Intel" ))
78
80
add_compile_definitions (GGML_BLAS_USE_MKL )
You can’t perform that action at this time.
0 commit comments