diff options
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 3 |
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 |
