diff options
| author | ruki <[email protected]> | 2021-04-13 00:59:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-13 00:59:47 +0800 |
| commit | 317745583da0e5c940f6e300c5f6163eb800efbf (patch) | |
| tree | 77b0bce7ff57ad6d89a0633dcdc15bda8659c094 /xmake/modules | |
| parent | 351faa77810f7e0c28d74c55e7c18a7a86e49a5d (diff) | |
improve apt find_package
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/manager/apt/find_package.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/apt/find_package.lua b/xmake/modules/package/manager/apt/find_package.lua index dd017924e..1eb1720ed 100644 --- a/xmake/modules/package/manager/apt/find_package.lua +++ b/xmake/modules/package/manager/apt/find_package.lua @@ -51,12 +51,14 @@ 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 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 |
