diff options
| author | ruki <[email protected]> | 2025-01-07 00:40:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-07 00:40:57 +0800 |
| commit | ae8a596c609e01b21caa5825f3fd2eec0bdb7507 (patch) | |
| tree | 20ab76b862913222a52c932d5688eb9c0dc176b3 /xmake/actions/config/main.lua | |
| parent | f6904d729ce7ca99fad237e5e0641ee015b97faf (diff) | |
support for inner namespace access
Diffstat (limited to 'xmake/actions/config/main.lua')
| -rw-r--r-- | xmake/actions/config/main.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index 9f0cc08fd..0f69142a5 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -102,12 +102,11 @@ end -- check target function _check_target(target, checked_targets) - if not checked_targets[target:name()] then - checked_targets[target:name()] = target + if not checked_targets[target:fullname()] then + checked_targets[target:fullname()] = target for _, depname in ipairs(target:get("deps")) do - assert(depname ~= target:name(), "the target(%s) cannot depend self!", depname) - local deptarget = project.target(depname) - assert(deptarget, "unknown target(%s) for %s.deps!", depname, target:name()) + local deptarget = project.target(depname, {namespace = target:namespace()}) + assert(deptarget, "unknown target(%s) for %s.deps!", depname, target:fullname()) _check_target(deptarget, checked_targets) end end |
