From 0b771ae5f07ca146bda2a10f00e84463fbeeb007 Mon Sep 17 00:00:00 2001 From: Hoildkv <42310255+xq114@users.noreply.github.com> Date: Sat, 3 Jul 2021 22:49:56 +0800 Subject: get msvc environment loaded for windows/cmake --- xmake/modules/package/tools/cmake.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xmake/modules/package/tools/cmake.lua') diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 5391a8d04..d924bfb6d 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -490,12 +490,11 @@ end -- get build environments function buildenvs(package, opt) - -- use ninja generator for windows platform? we need bind msvc environments manually + -- we need bind msvc environments manually -- @see https://github.com/xmake-io/xmake/issues/1057 opt = opt or {} local envs = {} - local cmake_generator = opt.cmake_generator - if cmake_generator and cmake_generator == "Ninja" and package:is_plat("windows") then + if package:is_plat("windows") then envs = _get_msvc_runenvs(package) end -- cgit v1.3.1