summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-13 22:39:03 +0800
committerruki <[email protected]>2022-07-13 22:39:03 +0800
commit8a7ac7b30eb72112e67350a491d4c3f045f3d86b (patch)
treed0454a00db4c8c56650798f1dbcd948916648c58
parent4123779a18ab0be9517b4a81928f0bf54861755e (diff)
improve cmake/find_package
-rw-r--r--xmake/modules/package/manager/cmake/find_package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/cmake/find_package.lua b/xmake/modules/package/manager/cmake/find_package.lua
index 73b10a9ef..79a982202 100644
--- a/xmake/modules/package/manager/cmake/find_package.lua
+++ b/xmake/modules/package/manager/cmake/find_package.lua
@@ -184,6 +184,11 @@ function _find_package(cmake, name, opt)
links = links or {}
table.insert(links, link)
end
+ -- is link? e.g. -lxxx
+ elseif line:startswith("-l") then
+ local link = line:sub(3):trim()
+ links = links or {}
+ table.insert(links, link)
end
end
end