From f621130aacffb10b71d5a5a5f6891ea1efcd7e5f Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 12 Jul 2024 23:42:45 +0800 Subject: check frameworks for package --- xmake/core/package/package.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1