diff options
Diffstat (limited to 'xmake/modules/detect/packages/find_mkl.lua')
| -rw-r--r-- | xmake/modules/detect/packages/find_mkl.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/detect/packages/find_mkl.lua b/xmake/modules/detect/packages/find_mkl.lua index cefa0356a..05e9f5c92 100644 --- a/xmake/modules/detect/packages/find_mkl.lua +++ b/xmake/modules/detect/packages/find_mkl.lua @@ -43,7 +43,7 @@ function main(opt) }
-- find library
- local result = {links = {}, linkdirs = {}, includedirs = {}}
+ local result = {links = {}, linkdirs = {}, includedirs = {}, threading = ""}
local linkinfo = find_library("mkl_core", paths, {suffixes = path.join("lib", rdir)})
if not linkinfo then
-- not found?
@@ -61,8 +61,10 @@ function main(opt) if tbb_res then
table.join2(result.linkdirs, tbb_res.linkdirs)
table.join2(result.links, {"mkl_tbb_thread", "mkl_core", "tbb"})
+ result.threading = "tbb"
else
table.join2(result.links, {"mkl_sequential", "mkl_core"})
+ result.threading = "seq"
end
-- find include
|
