summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorHoildkv <[email protected]>2021-07-03 22:49:56 +0800
committerGitHub <[email protected]>2021-07-03 22:49:56 +0800
commit0b771ae5f07ca146bda2a10f00e84463fbeeb007 (patch)
tree362d98e4ac204bed842ed40c693303ce1e2ce316 /xmake/modules/package/tools/cmake.lua
parent9e97ee9d0b9a43edea2a63cdebd9333bc25ca7e9 (diff)
get msvc environment loaded for windows/cmake
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-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