Skip to content

Commit ac6c846

Browse files
committed
boost: fix fetch system library
1 parent 43d9b6a commit ac6c846

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/b/boost/xmake.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,17 @@ package("boost")
281281
local dep = package:dep(depname)
282282
local info = dep:fetch({external = false})
283283
if info then
284+
local includedirs = table.wrap(info.sysincludedirs or info.includedirs)
285+
if #includedirs == 0 then
286+
includedirs = ""
287+
else
288+
for i, dir in ipairs(includedirs) do
289+
includedirs[i] = path.unix(dir)
290+
end
291+
end
284292
local usingstr = format("\nusing %s : %s : <include>%s <search>%s <name>%s ;",
285293
rule, dep:version(),
286-
path.unix(info.includedirs[1] or info.sysincludedirs[1]),
294+
table.concat(includedirs, ";"),
287295
path.unix(info.linkdirs[1]),
288296
info.links[1])
289297
file:write(usingstr)

0 commit comments

Comments
 (0)