summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 096a5ddd2..7ea3ff717 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -806,6 +806,11 @@ function _instance:fetch(opt)
-- true: only find system package
-- false: only find xmake packages
local system = opt.system or self:requireinfo().system
+ if self:is3rd() then
+ -- we need ignore `{system = true/false}` argument if be 3rd package
+ -- @see https://github.com/xmake-io/xmake/issues/726
+ system = nil
+ end
-- fetch binary tool?
fetchinfo = nil