summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index af58da81d..b6be08af3 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -156,7 +156,7 @@ end
function _get_cflags_from_packagedeps(package, opt)
local result = {}
for _, depname in ipairs(opt.packagedeps) do
- local dep = package:dep(depname)
+ local dep = type(depname) == "string" and package:dep(depname) or depname
if dep then
local fetchinfo = dep:fetch({external = false})
if fetchinfo then
@@ -173,7 +173,7 @@ end
function _get_ldflags_from_packagedeps(package, opt)
local result = {}
for _, depname in ipairs(opt.packagedeps) do
- local dep = package:dep(depname)
+ local dep = type(depname) == "string" and package:dep(depname) or depname
if dep then
local fetchinfo = dep:fetch({external = false})
if fetchinfo then