summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager
diff options
context:
space:
mode:
authorruki <[email protected]>2021-04-10 20:42:52 +0800
committerruki <[email protected]>2021-04-10 20:42:52 +0800
commite5c1550e47018a1e6545197d2e5364c15ed56678 (patch)
tree3678c414365940e4fb2dad1d9158e6d77c83dcd2 /xmake/modules/package/manager
parentf234b92504e3763b7bea4cd2537db02c198de26c (diff)
fix find_package
Diffstat (limited to 'xmake/modules/package/manager')
-rw-r--r--xmake/modules/package/manager/brew/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/brew/find_package.lua b/xmake/modules/package/manager/brew/find_package.lua
index f3677282a..49db5a464 100644
--- a/xmake/modules/package/manager/brew/find_package.lua
+++ b/xmake/modules/package/manager/brew/find_package.lua
@@ -80,7 +80,7 @@ function main(name, opt)
if pcfile then
opt.configdirs = path.directory(pcfile)
result = find_package("pkgconfig::" .. pcname, opt)
- if not result then
+ if not result or not result.includedirs then
-- attempt to get includedir variable from pkg-config/xx.pc
local varinfo = pkgconfig.variables(pcname, "includedir", opt)
if varinfo and varinfo.includedir then