diff --git a/plugins/milk-extra-src/linalgebra/CMakeLists.txt b/plugins/milk-extra-src/linalgebra/CMakeLists.txt index 9a53f229..c0eb650b 100644 --- a/plugins/milk-extra-src/linalgebra/CMakeLists.txt +++ b/plugins/milk-extra-src/linalgebra/CMakeLists.txt @@ -153,7 +153,7 @@ if(NOT MKL_FOUND) else() message("-- MKL NOT FOUND") message(" LINKING LAPACKE") - list(APPEND LINKLIBS lapacke) + target_link_libraries(${LIBNAME} PRIVATE lapacke) endif() endif()