diff options
| author | ruki <[email protected]> | 2019-03-19 23:59:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-19 17:58:29 +0800 |
| commit | 568e0263260ca2c3f81bc842c273181c00e0b4f4 (patch) | |
| tree | b1cca7d9a9a96cf87d91bb9af3b826e9d577c387 /xmake/modules | |
| parent | 5b409ef365114ccf02c1c8297fe338518a6e2ad0 (diff) | |
fix package PATH
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/detect/tools/find_cmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_cmake.lua b/xmake/modules/detect/tools/find_cmake.lua index e9a20232d..021133052 100644 --- a/xmake/modules/detect/tools/find_cmake.lua +++ b/xmake/modules/detect/tools/find_cmake.lua @@ -52,7 +52,7 @@ function main(opt) -- find program version local version = nil - if opt and opt.version then + if program and opt and opt.version then version = find_programver(program, opt) end |
