From 080cd27df665e1002ecb8edc8925d4ad824e9fbf Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 13 Sep 2022 22:47:33 +0800 Subject: Update find_matlab_runtime.lua --- xmake/modules/detect/sdks/find_matlab_runtime.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 + -- cgit v1.3.1