summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-11 23:13:39 +0800
committerGitHub <[email protected]>2024-01-11 23:13:39 +0800
commit2d32603c5ed7811599517d10d47a73d192ecc4a2 (patch)
treed7c8f611b77f2940135050d7058944af41d4b311 /xmake/core/package/package.lua
parentcaa2858df5409ec288006c81bd2fb981b236bbe1 (diff)
parent7cfdda07ab460cac40ef42f74fe4430f34b559be (diff)
Merge pull request #4600 from xmake-io/system
improve system::find_package
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 8704b3df1..4190c43c1 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1760,8 +1760,13 @@ function _instance:find_package(name, opt)
buildhash = self:buildhash(), -- for xmake package or 3rd package manager, e.g. go:: ..
cachekey = opt.cachekey or "fetch_package_system",
external = opt.external,
- includes = opt.includes, -- system/find_package need it
- system = system})
+ system = system,
+ -- the following options is only for system::find_package
+ sourcekind = opt.sourcekind,
+ package = self,
+ funcs = opt.funcs,
+ snippets = opt.snippets,
+ includes = opt.includes})
end
-- fetch the local package info