blas build with openblas/blis/etc: use libraries and linker flags from from pkg-config

This commit is contained in:
Alexey Korepanov 2025-02-07 20:43:13 +00:00
parent d2fe216fb2
commit 4ff7009c3c

View file

@ -54,6 +54,8 @@ if (BLAS_FOUND)
endif()
if (DepBLAS_FOUND)
set(BLAS_INCLUDE_DIRS ${DepBLAS_INCLUDE_DIRS})
set(BLAS_LIBRARIES ${DepBLAS_LIBRARIES})
set(BLAS_LINKER_FLAGS ${DepBLAS_LINKER_FLAGS})
else()
message(WARNING "BLAS_INCLUDE_DIRS neither been provided nor been automatically"
" detected by pkgconfig, trying to find cblas.h from possible paths...")