summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-31 16:05:05 +0800
committerruki <[email protected]>2021-10-31 16:05:05 +0800
commitce2c9b5eff82bf96804514b837dc215b6a07c739 (patch)
tree84a8d38189b99542d3d42dbcfd6d8e2fa1bb5bfd
parent1fdc20b61c6a5abd5bbec59f6274c035897bb3b4 (diff)
improve apt::find_package
-rw-r--r--xmake/modules/package/manager/apt/find_package.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/xmake/modules/package/manager/apt/find_package.lua b/xmake/modules/package/manager/apt/find_package.lua
index 3fee1034f..27a0ebbe1 100644
--- a/xmake/modules/package/manager/apt/find_package.lua
+++ b/xmake/modules/package/manager/apt/find_package.lua
@@ -51,14 +51,11 @@ function main(name, opt)
line = line:trim()
-- get includedirs
- -- we need not add it, gcc/clang will use /usr/ as default sysroot
- --[[
local pos = line:find("include/", 1, true)
if pos then
+ -- we need not add includedirs, gcc/clang will use /usr/ as default sysroot
result = result or {}
- result.includedirs = result.includedirs or {}
- table.insert(result.includedirs, line:sub(1, pos + 7))
- end]]
+ end
-- get linkdirs and links
if line:endswith(".a") or line:endswith(".so") then