summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 30c571592..840814040 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -961,6 +961,12 @@ function _load_package(packagename, requireinfo, opt)
local package
if os.isfile(os.projectfile()) then
package = _load_package_from_project(packagename)
+ if package and package:namespace() then
+ packagename = package:namespace() .. "::" .. packagename
+ if displayname then
+ displayname = package:namespace() .. "::" .. displayname
+ end
+ end
end
-- load package from repositories