diff options
Diffstat (limited to 'xmake/modules/detect/tool/find_unzip.lua')
| -rw-r--r-- | xmake/modules/detect/tool/find_unzip.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/detect/tool/find_unzip.lua b/xmake/modules/detect/tool/find_unzip.lua index 19c30f517..c3533cd54 100644 --- a/xmake/modules/detect/tool/find_unzip.lua +++ b/xmake/modules/detect/tool/find_unzip.lua @@ -40,9 +40,12 @@ import("lib.detect.find_programver") -- @endcode -- function main(opt) + + -- init options + opt = opt or {} -- find program - local program = find_program("unzip", {}, "-v") + local program = find_program(opt.program or "unzip", opt.pathes, opt.check or "-v") -- find program version local version = nil |
