From 582e787caf3a7165caca180cb128f614c79d25fc Mon Sep 17 00:00:00 2001 From: Chen Yufei Date: Fri, 25 Feb 2022 20:25:59 +0800 Subject: [PATCH] gflags: support all platforms. (#1019) * gflags: support all platforms. * trigger ci --- packages/g/gflags/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/g/gflags/xmake.lua b/packages/g/gflags/xmake.lua index ca72dd082..af29c65c9 100644 --- a/packages/g/gflags/xmake.lua +++ b/packages/g/gflags/xmake.lua @@ -12,12 +12,12 @@ package("gflags") add_configs("mt", {description = "Build the multi-threaded gflags library.", default = false, type = "boolean"}) add_deps("cmake") - if is_plat("windows") then + if is_plat("windows", "mingw") then add_syslinks("shlwapi") elseif is_plat("linux") then add_syslinks("pthread") end - on_install("windows", "linux", "macosx", function (package) + on_install(function (package) local configs = { "-DBUILD_TESTING=OFF", "-DGFLAGS_REGISTER_BUILD_DIR=OFF",