From 8a7ac7b30eb72112e67350a491d4c3f045f3d86b Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 13 Jul 2022 22:39:03 +0800 Subject: improve cmake/find_package --- xmake/modules/package/manager/cmake/find_package.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.3.1