add ninja dep to cmake (#5222)

* Update xmake.lua

* add ninja dep to cmake

* Update xmake.lua
pull/5223/head^2
ruki 2 months ago committed by GitHub
parent ac2fe8dce4
commit 99fab43dcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      packages/c/cmake/xmake.lua

@ -136,6 +136,14 @@ package("cmake")
add_extsources("brew::cmake")
end
on_load(function (package)
-- xmake v3.x will enable this ninja policy by default
import("core.project.project")
if xmake.version():ge("2.9.0") and project.policy("package.cmake_generator.ninja") then
package:add("deps", "ninja")
end
end)
on_install("@macosx", function (package)
os.cp("CMake.app/Contents/bin", package:installdir())
os.cp("CMake.app/Contents/share", package:installdir())

Loading…
Cancel
Save