summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-13 22:47:08 +0800
committerGitHub <[email protected]>2022-09-13 22:47:08 +0800
commit5e0263d070c049332f01c652d70d29542f7e95f2 (patch)
treed5cee8375bd845b82e72cf6474f675bb364f8e01
parentc8768fc11f3ecedfcebec4ac36a20f4e76355098 (diff)
Update find_matlab.lua
-rw-r--r--xmake/modules/detect/sdks/find_matlab.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_matlab.lua b/xmake/modules/detect/sdks/find_matlab.lua
index 308926be0..8d69f4ca0 100644
--- a/xmake/modules/detect/sdks/find_matlab.lua
+++ b/xmake/modules/detect/sdks/find_matlab.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 = {}}
if is_host("windows") then
local matlabkey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB"
@@ -86,3 +86,4 @@ function main(opt)
end
return result
end
+