summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-19 22:50:53 +0800
committerruki <[email protected]>2021-02-19 22:50:53 +0800
commitc82bda398cadeeeccbdb8804b8bb3d7fe74172dc (patch)
treef40d9ddbb75eb90e6f39d19c28da273d5fb41f36 /xmake/modules/detect/tools/find_cmake.lua
parent41e6c1d82e6417f8cc0818ae37ee2677fd3692c1 (diff)
add gnu2mslib
Diffstat (limited to 'xmake/modules/detect/tools/find_cmake.lua')
-rw-r--r--xmake/modules/detect/tools/find_cmake.lua2
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 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