summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-28 23:16:33 +0800
committerruki <[email protected]>2019-03-28 13:39:21 +0800
commit880e002552b6dfe69fe3e5d105275f0aabf82195 (patch)
treebba9fa725d522fd8d627b181f1401a1531b81db7 /xmake/core/package/package.lua
parentca1668be5f36ddbb082ea52d77585645b9739f48 (diff)
fix configurations for conan
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 92e60489d..a9d534672 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -967,6 +967,16 @@ function package.load_from_system(packagename)
instance._isSys = true
instance._is3rd = is3rd
+ -- add configurations for the 3rd package
+ if is3rd then
+ local install_package = sandbox_module.import("package.manager." .. packagename:split("::")[1]:lower() .. ".install_package", {try = true, anonymous = true})
+ if install_package and install_package.configurations then
+ for name, conf in pairs(install_package.configurations()) do
+ instance:add("configs", name, conf)
+ end
+ end
+ end
+
-- save instance to the cache
package._PACKAGES[packagename] = instance