Skip to content

Commit

Permalink
Fixed lapacke linking in linalgebra when no MKL. Should probs be glob…
Browse files Browse the repository at this point in the history
…al. See PR #32 in cacao repo.
  • Loading branch information
DasVinch authored and kyohoon-ahn committed Nov 12, 2023
1 parent feb7758 commit 31bc5d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/milk-extra-src/linalgebra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -151,4 +155,4 @@ message("---------------------------------------")

install(TARGETS ${LIBNAME} DESTINATION lib)
install(FILES ${INCLUDEFILES} DESTINATION include/${SRCNAME})
install(PROGRAMS ${SCRIPTS} DESTINATION bin)
install(PROGRAMS ${SCRIPTS} DESTINATION bin)

0 comments on commit 31bc5d1

Please sign in to comment.