Prevent cmake from trying to link with system MKL (#64)

Co-authored-by: Trung Le <trungle@x3english.com>
This commit is contained in:
trunglebka 2022-12-16 16:07:22 +07:00 committed by GitHub
parent 94a567c638
commit 749eff994f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,10 @@ option(kaldifeat_BUILD_PYMODULE "Whether to build python module or not" ON)
if(kaldifeat_BUILD_PYMODULE) if(kaldifeat_BUILD_PYMODULE)
include(pybind11) include(pybind11)
endif() 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) include(torch)
if(kaldifeat_BUILD_TESTS) if(kaldifeat_BUILD_TESTS)