pull/5001/head
ruki 3 months ago committed by GitHub
parent 7c1c391c09
commit a56846b722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      packages/b/boost/xmake.lua

@ -282,16 +282,19 @@ package("boost")
local info = dep:fetch({external = false})
if info then
local includedirs = table.wrap(info.sysincludedirs or info.includedirs)
if #includedirs != 0 then
for i, dir in ipairs(includedirs) do
includedirs[i] = path.unix(dir)
end
local linkdirs = table.wrap(info.linkdirs)
for i, dir in ipairs(linkdirs) do
linkdirs[i] = path.unix(dir)
end
local links = table.wrap(info.links)
local usingstr = format("\nusing %s : %s : <include>%s <search>%s <name>%s ;",
rule, dep:version(),
table.concat(includedirs, ";"),
path.unix(info.linkdirs[1]),
info.links[1])
table.concat(linkdirs, ";"),
table.concat(links, ";"))
file:write(usingstr)
end
end

Loading…
Cancel
Save