summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager
diff options
context:
space:
mode:
authorCherichy <[email protected]>2021-12-14 19:39:02 +0800
committerGitHub <[email protected]>2021-12-14 19:39:02 +0800
commit4a73b8dc0701c896a794deb751e6da5dfaebb28a (patch)
treeb8c25bb060c055af897246f62d7f88a13c6ffc0c /xmake/modules/package/manager
parentb5ec6f34b6f72e8fcbf27042b53eb36ff26f63ad (diff)
Update find_package.lua
Diffstat (limited to 'xmake/modules/package/manager')
-rw-r--r--xmake/modules/package/manager/cmake/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/cmake/find_package.lua b/xmake/modules/package/manager/cmake/find_package.lua
index ddf0bc3a1..22ebc711b 100644
--- a/xmake/modules/package/manager/cmake/find_package.lua
+++ b/xmake/modules/package/manager/cmake/find_package.lua
@@ -202,7 +202,7 @@ function _find_package(cmake, name, opt)
-- get links and linkdirs
local linkdir = path.directory(library)
linkdir = path.translate(linkdir)
- if linkdir ~= "." and not linkdir:find(workdir) then
+ if linkdir ~= "." and not linkdir:startswith(workdir) then
linkdirs = linkdirs or {}
table.insert(linkdirs, linkdir)
local link = target.linkname(path.filename(library))