Open dionhaefner opened 7 years ago
When I get the time, I need to figure all of these various CMake dependencies out! At first, the LAPACKE ext method was just for show. Note that I have also only implemented a small handful of methods from LAPACK.
I ran into the following problem on Ubuntu:
If one does not have e.g.
libopenblas-dev
installed (which provides BLAS, CBLAS, and LAPACK symbols), butlibblas-dev
andliblapacke-dev
, running the LAPACK extmethods fails withThis is because the LAPACKE library from
apt-get
only contains LAPACKE symbols, not the vanilla LAPACK symbols, and the CMake script only links the libbhlapack{driver} libraries to LAPACKE, not LAPACK. One remedy is to issuefind_package(LAPACK)
inextmethods/lapack/CMakeListst.txt
and link it e.g. withtarget_link_libraries(bh_lapack_${DRIVER} ${LAPACK_LIBRARIES} ${LAPACKE_LIBRARIES})
.