Skip to content

Commit

Permalink
Fix linkage on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
CuiYifeng committed Aug 15, 2024
1 parent 9e406e5 commit 36bd0bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/Modules/FindONEMKL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ endif()
set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "${ONEMKL_INCLUDE_DIR}")
set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${ONEMKL_LIB_DIR}")

set(MKL_LIB_NAMES "mkl_intel_lp64" "mkl_gnu_thread" "mkl_core" "mkl_sycl_dft")
if(WIN32)
set(MKL_LIB_NAMES "mkl_intel_lp64" "mkl_intel_thread" "mkl_core" "mkl_sycl")
else()
set(MKL_LIB_NAMES "mkl_intel_lp64" "mkl_gnu_thread" "mkl_core" "mkl_sycl_dft")
endif()

foreach(LIB_NAME IN LISTS MKL_LIB_NAMES)
find_library(
Expand Down

0 comments on commit 36bd0bb

Please sign in to comment.