summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-12 23:42:45 +0800
committerruki <[email protected]>2024-07-12 23:42:45 +0800
commitf621130aacffb10b71d5a5a5f6891ea1efcd7e5f (patch)
treeb6abe881a03a118e76223e46c4ed8df222368115 /xmake/core/package/package.lua
parentdc071bf7187826f4183a0f8bc51cb03faa279ae2 (diff)
check frameworks for package
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 31b402174..9bbca43c8 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -2401,7 +2401,8 @@ function _instance:_generate_build_configs(configs, opt)
-- check links for library
if self:is_library() and not self:is_headeronly() then
local links = table.wrap(configs.links)
- if #links == 0 then
+ local frameworks = table.wrap(configs.frameworks)
+ if #links == 0 and #frameworks == 0 then
os.raise("package(%s): links not found!", self:name())
end
end