From 749eff994fa66ff2b32f71711cc54b1f14211608 Mon Sep 17 00:00:00 2001 From: trunglebka <16150250+trunglebka@users.noreply.github.com> Date: Fri, 16 Dec 2022 16:07:22 +0700 Subject: [PATCH] Prevent cmake from trying to link with system MKL (#64) Co-authored-by: Trung Le --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fac3f11..82124ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,10 @@ option(kaldifeat_BUILD_PYMODULE "Whether to build python module or not" ON) if(kaldifeat_BUILD_PYMODULE) include(pybind11) endif() - +# to prevent cmake from trying to link with system installed mkl since we not directly use it +# mkl libraries should be linked with pytorch already +# ref: https://github.com/pytorch/pytorch/blob/master/cmake/public/mkl.cmake +set(CMAKE_DISABLE_FIND_PACKAGE_MKL TRUE) include(torch) if(kaldifeat_BUILD_TESTS)