summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-18 00:59:18 +0800
committerruki <[email protected]>2022-10-18 00:59:18 +0800
commit56e8eefde61b8a152218364163a9685eb8d6ee76 (patch)
tree85f71de2a5c30ce4d77eb5ffd2f7b98f6bb2dca3
parent3ea5c8babb63ad6cd3442c31762a7815df2e1a1b (diff)
add warnings
-rw-r--r--xmake/core/project/target.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index c4e73b37d..d879f656a 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -423,6 +423,9 @@ function _instance:get_from_pkgs(name, opt)
local info = components[component_name]
if info then
table.join2(values, info[name] or pkg:get(name))
+ else
+ local components_str = table.concat(table.wrap(configinfo.components), ", ")
+ utils.warning("unknown component(%s) in add_packages(%s, {components = {%s}})", component_name, pkg:name(), components_str)
end
end
elseif configinfo and configinfo[name] then