From 1a4cb99bd3e6738f79ecaf627114a0097f5b55a6 Mon Sep 17 00:00:00 2001 From: biobot Date: Sun, 19 Dec 2021 12:34:47 +0800 Subject: use ninja instead of make when generator is ninja Signed-off-by: biobot --- xmake/modules/package/tools/cmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 1134339d0..4ced3e67d 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -378,6 +378,10 @@ function _get_configs_for_mingw(package, configs, opt) envs.CMAKE_MAKE_PROGRAM = path.join(mingw, "bin", "mingw32-make.exe") end + if opt.cmake_generator == "Ninja" then + envs.CMAKE_MAKE_PROGRAM = "ninja" + end + for k, v in pairs(envs) do table.insert(configs, "-D" .. k .. "=" .. v) end -- cgit v1.3.1