From be832f2cace05fd467886c91313ca5e7e5598dce Mon Sep 17 00:00:00 2001 From: tokomine <112622724+tokomine@users.noreply.github.com> Date: Fri, 25 Aug 2023 21:32:49 +0800 Subject: [PATCH] add mingw&cross support to eigen&abseil (#2497) * add mingw support to abseil * add cross support to eigen --- packages/a/abseil/xmake.lua | 2 +- packages/e/eigen/xmake.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/a/abseil/xmake.lua b/packages/a/abseil/xmake.lua index 5765dce51..f2a1c6b34 100644 --- a/packages/a/abseil/xmake.lua +++ b/packages/a/abseil/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")) diff --git a/packages/e/eigen/xmake.lua b/packages/e/eigen/xmake.lua index 265e31dd5..7a4f3f0b8 100644 --- a/packages/e/eigen/xmake.lua +++ b/packages/e/eigen/xmake.lua @@ -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)