summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index c2f6133d1..f5bc81343 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -529,7 +529,7 @@ function install(package, configs, opt)
-- to the child xmake process so it can find already-installed deps
-- without re-installing them to the global directory
-- @see https://github.com/xmake-io/xmake/discussions/7441
- if package:is_local() then
+ if package:is_local() and not package:is_source_embed() then
envs = table.clone(envs)
envs.XMAKE_PKG_INSTALLDIR = package.installdir({localdir = true})
end