diff options
| author | ruki <[email protected]> | 2020-12-07 22:33:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-07 22:33:07 +0800 |
| commit | 83c683cb9f564d73b84750ee1691d58b6b778eed (patch) | |
| tree | 4f5d369ec2ff9391af007a86ddb50e3e855c9664 /xmake/toolchains | |
| parent | e000c9404afce3a7a793fbf6bd8579a0f132f84e (diff) | |
improve find_cmake
Diffstat (limited to 'xmake/toolchains')
| -rw-r--r-- | xmake/toolchains/msvc/check.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/toolchains/msvc/check.lua b/xmake/toolchains/msvc/check.lua index 52109b76a..33cfc6298 100644 --- a/xmake/toolchains/msvc/check.lua +++ b/xmake/toolchains/msvc/check.lua @@ -80,7 +80,7 @@ function _check_vstudio(toolchain) cprint("checking for Microsoft Visual Studio (%s) version ... ${color.success}%s", toolchain:arch(), vs) else cprint("checking for Microsoft Visual Studio (%s) version ... ${color.nothing}${text.nothing}", toolchain:arch()) - if not (opt and opt.try) then + if toolchain:is_plat("windows") then print("please run:") print(" - xmake config --vs=xxx [--vs_toolset=xxx]") print("or - xmake global --vs=xxx") |
