diff options
| author | ruki <[email protected]> | 2022-07-13 22:39:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-13 22:39:03 +0800 |
| commit | 8a7ac7b30eb72112e67350a491d4c3f045f3d86b (patch) | |
| tree | d0454a00db4c8c56650798f1dbcd948916648c58 | |
| parent | 4123779a18ab0be9517b4a81928f0bf54861755e (diff) | |
improve cmake/find_package
| -rw-r--r-- | xmake/modules/package/manager/cmake/find_package.lua | 5 |
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 |
