summaryrefslogtreecommitdiff
path: root/xmake/plugins/check/checkers/api/target/frameworkdirs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/check/checkers/api/target/frameworkdirs.lua')
-rw-r--r--xmake/plugins/check/checkers/api/target/frameworkdirs.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/plugins/check/checkers/api/target/frameworkdirs.lua b/xmake/plugins/check/checkers/api/target/frameworkdirs.lua
index f21629fe5..088aa7114 100644
--- a/xmake/plugins/check/checkers/api/target/frameworkdirs.lua
+++ b/xmake/plugins/check/checkers/api/target/frameworkdirs.lua
@@ -21,11 +21,12 @@
-- imports
import(".api_checker")
-function main()
- api_checker.check_targets("frameworkdirs", {check = function(target, value)
+function main(opt)
+ opt = opt or {}
+ api_checker.check_targets("frameworkdirs", table.join(opt, {check = function(target, value)
if not os.isdir(value) then
return false, string.format("frameworkdir '%s' not found", value)
end
return true
- end})
+ end}))
end