diff options
| author | ruki <[email protected]> | 2019-11-12 00:40:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-11-11 22:01:43 +0800 |
| commit | 85a3d9cad3817a48d5f0f4e762a004d8430aa2c6 (patch) | |
| tree | 4024587e9acda3532ae5673816f12888aeb885fe | |
| parent | efe09b2a11d9e43cfe1e3289ed9cae6ff7b867e7 (diff) | |
fix find_package for brew
| -rw-r--r-- | xmake/modules/package/manager/brew/find_package.lua | 2 |
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 3b039b1af..a3159863e 100644 --- a/xmake/modules/package/manager/brew/find_package.lua +++ b/xmake/modules/package/manager/brew/find_package.lua @@ -54,7 +54,7 @@ function main(name, opt) if not result then -- attempt to get includedir variable from pkg-config/xx.pc local varinfo = pkg_config.variables(pcname, "includedir", opt) - if varinfo.includedir then + if varinfo and varinfo.includedir then result = result or {} result.version = pkg_config.version(pcname, opt) result.includedirs = varinfo.includedir |
