summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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