diff options
| -rw-r--r-- | xmake/core/project/target.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 907c6ba10..d1a9b3efe 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -726,7 +726,7 @@ function _instance:orderpkgs(opt) if requires then for _, packagename in ipairs(table.wrap(self:get("packages", opt))) do local pkg = requires[packagename] - if pkg:enabled() then + if pkg and pkg:enabled() then table.insert(packages, pkg) end end |
