summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/cmake.lua5
1 files changed, 2 insertions, 3 deletions
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