diff options
| author | ruki <[email protected]> | 2024-07-27 11:22:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-27 11:22:49 +0800 |
| commit | a766d76d6b3f43c4fa2058f59c565c46a59b1118 (patch) | |
| tree | 5f3840f4f9a31b030e7c170c30450bdecb34740c | |
| parent | 6f3dd2d6ca7c0ba527d0358cedbf03d3fc755694 (diff) | |
improve to patch pkgconfig pc file
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua index a5b42c0a3..056ebddb9 100644 --- a/xmake/modules/private/action/require/impl/actions/install.lua +++ b/xmake/modules/private/action/require/impl/actions/install.lua @@ -75,7 +75,7 @@ function _patch_pkgconfig(package) -- cflags local cflags = "" - for _, includedir in ipairs(fetchinfo.includedirs) do + for _, includedir in ipairs(fetchinfo.includedirs or fetchinfo.sysincludedirs) do if includedir ~= path.join(installdir, "include") then cflags = cflags .. " -I" .. (includedir:gsub("\\", "/")) end |
