diff options
Diffstat (limited to 'xmake/modules/detect/tools')
| -rw-r--r-- | xmake/modules/detect/tools/find_cmake.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_ninja.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_cmake.lua b/xmake/modules/detect/tools/find_cmake.lua index e227c22a6..7c967f600 100644 --- a/xmake/modules/detect/tools/find_cmake.lua +++ b/xmake/modules/detect/tools/find_cmake.lua @@ -49,7 +49,7 @@ function main(opt) if not program and is_host("windows") then local msvc = toolchain.load("msvc") if msvc:check() then - opt.envs = toolchain.load("msvc"):runenvs() -- we attempt to find it from vstudio environments + opt.envs = msvc:runenvs() -- we attempt to find it from vstudio environments opt.force = true program = find_program(opt.program or "cmake", opt) end diff --git a/xmake/modules/detect/tools/find_ninja.lua b/xmake/modules/detect/tools/find_ninja.lua index f9f8a08be..36b8b0db8 100644 --- a/xmake/modules/detect/tools/find_ninja.lua +++ b/xmake/modules/detect/tools/find_ninja.lua @@ -44,7 +44,7 @@ function main(opt) if not program and is_host("windows") then local msvc = toolchain.load("msvc") if msvc:check() then - opt.envs = toolchain.load("msvc"):runenvs() -- we attempt to find it from vstudio environments + opt.envs = msvc:runenvs() -- we attempt to find it from vstudio environments opt.force = true program = find_program(opt.program or "ninja", opt) end |
