summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-13 22:47:33 +0800
committerGitHub <[email protected]>2022-09-13 22:47:33 +0800
commit080cd27df665e1002ecb8edc8925d4ad824e9fbf (patch)
treea59e2d165b35c77d4447d686b649fb0d4f7cf0a2 /xmake/modules
parent5e0263d070c049332f01c652d70d29542f7e95f2 (diff)
Update find_matlab_runtime.lua
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_matlab_runtime.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_matlab_runtime.lua b/xmake/modules/detect/sdks/find_matlab_runtime.lua
index 917a6c473..b7fae4888 100644
--- a/xmake/modules/detect/sdks/find_matlab_runtime.lua
+++ b/xmake/modules/detect/sdks/find_matlab_runtime.lua
@@ -33,7 +33,7 @@ import("detect.sdks.matlab")
--
function main(opt)
opt = opt or {}
- local version = opt.version and tostring(opt.version) or nil
+ local version = opt.require_version and tostring(opt.require_version) or nil
local result = {sdkdir = "", includedirs = {}, linkdirs = {}, links = {}, bindirs = {}}
if is_host("windows") then
local matlabkey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB Runtime"
@@ -98,3 +98,4 @@ function main(opt)
end
return result
end
+