diff --git a/plugins/milk-extra-src/linalgebra/CMakeLists.txt b/plugins/milk-extra-src/linalgebra/CMakeLists.txt index f62033b4..448b1cc6 100644 --- a/plugins/milk-extra-src/linalgebra/CMakeLists.txt +++ b/plugins/milk-extra-src/linalgebra/CMakeLists.txt @@ -142,7 +142,11 @@ target_link_libraries(${LIBNAME} PUBLIC ${MKL_LIBRARIES}) target_compile_options(${LIBNAME} PUBLIC -DHAVE_MKL ${MKL_CFLAGS_OTHER}) endif() - +if(NOT MKL_FOUND) # Need to link against actual LAPACKE + message("-- MKL NOT FOUND") + message(" LINKING LAPACKE") + target_link_libraries(${LIBNAME} PRIVATE lapacke) +endif() target_link_libraries(${LIBNAME} PRIVATE CLIcore) @@ -151,4 +155,4 @@ message("---------------------------------------") install(TARGETS ${LIBNAME} DESTINATION lib) install(FILES ${INCLUDEFILES} DESTINATION include/${SRCNAME}) -install(PROGRAMS ${SCRIPTS} DESTINATION bin) \ No newline at end of file +install(PROGRAMS ${SCRIPTS} DESTINATION bin)