diff options
| author | ruki <[email protected]> | 2023-02-07 22:29:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-07 22:29:29 +0800 |
| commit | 3bc572e74f262d23263ecf0123c13ed9f214c4fd (patch) | |
| tree | f654325865ec6efecf6cbfe99ed859b1a8e7bd73 /xmake/modules/package/tools/autoconf.lua | |
| parent | 3e81e80d61651c36766bec2f6ed18154c951c9db (diff) | |
improve packagedeps
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 4 |
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 |
