diff options
| author | EZ4Stephen <[email protected]> | 2026-07-01 14:01:58 +0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-01 14:01:58 +0400 |
| commit | 0bd3b6b78c784a6a221865d95e71a3cd4fb62460 (patch) | |
| tree | 26207243a950ba1e994cbaefdbf69701ff8aa772 | |
| parent | 5cb46ce73332d1cb361b1869e92441d24a017469 (diff) | |
Fix pkgconfig path for bsd in meson.lua
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua index 5434ec7f6..c82b93f61 100644 --- a/xmake/modules/package/tools/meson.lua +++ b/xmake/modules/package/tools/meson.lua @@ -528,7 +528,12 @@ function buildenvs(package, opt) local CMAKE_INCLUDE_PATH = {} local CMAKE_PREFIX_PATH = {} for _, dep in ipairs(package:librarydeps({private = true})) do - local pkgconfig = path.join(dep:installdir(), "lib", "pkgconfig") + local pkgconfig + if package:is_plat("bsd") then + pkgconfig = path.join(dep:installdir(), "libdata", "pkgconfig") + else + pkgconfig = path.join(dep:installdir(), "lib", "pkgconfig") + end if os.isdir(pkgconfig) then table.insert(PKG_CONFIG_PATH, pkgconfig) end |
