diff options
| author | Hoildkv <[email protected]> | 2021-01-24 23:27:34 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-24 23:27:34 +0800 |
| commit | c303863d727e33ee06762af5989a606d118fe6fa (patch) | |
| tree | 0e6cb501f41750772e5322bef8261e3c90f0fb96 /xmake/modules/detect | |
| parent | 9885df3060404ab05d81479bdbfeeb792864ec46 (diff) | |
Update find_mkl.lua
Diffstat (limited to 'xmake/modules/detect')
| -rw-r--r-- | xmake/modules/detect/packages/find_mkl.lua | 5 |
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
|
