add mingw&cross support to eigen&abseil (#2497)

* add mingw support to abseil

* add cross support to eigen
pull/2500/head
tokomine 1 year ago committed by GitHub
parent 1565654f49
commit be832f2cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/a/abseil/xmake.lua
  2. 2
      packages/e/eigen/xmake.lua

@ -48,7 +48,7 @@ package("abseil")
end
end)
on_install("macosx", "linux", "windows", function (package)
on_install("macosx", "linux", "windows", "mingw", "cross", function (package)
local configs = {"-DCMAKE_CXX_STANDARD=17"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

@ -24,7 +24,7 @@ package("eigen")
add_includedirs("include")
add_includedirs("include/eigen3")
on_install("macosx", "linux", "windows", "mingw", function (package)
on_install("macosx", "linux", "windows", "mingw", "cross", function (package)
import("package.tools.cmake").install(package, {"-DBUILD_TESTING=OFF"})
end)

Loading…
Cancel
Save