summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorHoildkv <[email protected]>2021-01-24 23:27:34 +0800
committerGitHub <[email protected]>2021-01-24 23:27:34 +0800
commitc303863d727e33ee06762af5989a606d118fe6fa (patch)
tree0e6cb501f41750772e5322bef8261e3c90f0fb96 /xmake/modules/detect
parent9885df3060404ab05d81479bdbfeeb792864ec46 (diff)
Update find_mkl.lua
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/packages/find_mkl.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/detect/packages/find_mkl.lua b/xmake/modules/detect/packages/find_mkl.lua
index 4641d5840..cefa0356a 100644
--- a/xmake/modules/detect/packages/find_mkl.lua
+++ b/xmake/modules/detect/packages/find_mkl.lua
@@ -39,13 +39,12 @@ function main(opt)
-- init search paths
local paths = {
- "$(env ONEAPI_ROOT)\\mkl\\latest",
- "$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{09085019-08A5-40A0-B0E8-570C171997A0};InstallLocation)\\mkl\\latest"
+ "$(env ONEAPI_ROOT)\\mkl\\latest"
}
-- find library
local result = {links = {}, linkdirs = {}, includedirs = {}}
- local linkinfo = find_library("mkl_core", paths, {suffixes = "lib\\" .. rdir})
+ local linkinfo = find_library("mkl_core", paths, {suffixes = path.join("lib", rdir)})
if not linkinfo then
-- not found?
return