FindBLAS does not work with CBLAS (Netlib)
For the Netlib CBLAS implementation, the following fails:
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(blas_test CXX)
find_package(BLAS REQUIRED)
add_executable(testy testy.cpp)
target_link_libraries(testy PUBLIC ${BLAS_LIBRARIES})
with undefined reference to cblas_dgemm
(used in testy.cpp) since /usr/lib/libblas.so
is found but not /usr/lib/libcblas.so
.
Edited by Teodor Nikolov